werent4's picture
fix runtime
4022452
raw
history blame contribute delete
555 Bytes
import subprocess
subprocess.run(["pip", "uninstall", "gradio"])
subprocess.run(["pip", "install", "-U", "gliclass"])
subprocess.run(["pip", "install", "gradio==5.33.0"])
import gradio as gr
from interfaces import landing_interface, main_pipeline
demo = gr.TabbedInterface([landing_interface, main_pipeline],
["Introduction", "Zero-Shot Text Classification"],
title="GLiClass SandBox",
theme=gr.themes.Base())
demo.queue()
demo.launch(debug=True, share=True)