import subprocess subprocess.run(["pip", "uninstall", "gradio"]) subprocess.run(["pip", "install", "utca>=0.1.0"]) subprocess.run(["pip", "install", "gradio==4.31.5"]) import gradio as gr from interfaces import ner_interface, qa_interface, open_ie_interface, summarization_interface, landing_interface, relation_e_interface, universal_interface demo = gr.TabbedInterface([landing_interface, ner_interface, qa_interface, open_ie_interface, summarization_interface, relation_e_interface, universal_interface], ["Introduction", "NER", "Question Answering", "Open Information Extracting", "Summarization", "Relation Extracting", "Universal Task"], title="GLiNER HandyLab", theme=gr.themes.Base()) demo.queue() demo.launch(debug=True, share=True)