UTC_HandyLab / app.py
BioMike's picture
Upload 22 files
5571f23 verified
raw
history blame
873 Bytes
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, 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)