File size: 836 Bytes
1218161
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)