Spaces:
Running
Running
import subprocess | |
subprocess.run(["pip", "uninstall", "gradio"]) | |
subprocess.run(["pip", "install", "utca>=0.1.0"]) | |
subprocess.run(["pip", "install", "gradio==4.20.0"]) | |
import gradio as gr | |
from interfaces import ner_interface, qa_interface, open_ie_interface, summarization_interface, landing_interface, relation_e_interface, text_cleaning_interface | |
demo = gr.TabbedInterface([landing_interface, ner_interface, qa_interface, open_ie_interface, summarization_interface, relation_e_interface, text_cleaning_interface], | |
["Introduction", "NER", "Question Answering", "Open Information Extracting", "Summarization", "Relation Extracting", "Text Cleaning"], | |
title="UTC (Universal Token Classification) HandyLab", | |
theme=gr.themes.Base()) | |
demo.queue() | |
demo.launch(debug=True, share=True) |