GLiNER_HandyLab / app.py
BioMike BioMikeUkr
Model replaced with knowledgator/gliner-multitask-v1.0 and ner task (Text Classification added)
b03b2db
raw
history blame contribute delete
897 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, universal_interface, classification_interface
demo = gr.TabbedInterface([landing_interface, ner_interface, qa_interface, open_ie_interface, summarization_interface, relation_e_interface, classification_interface, universal_interface],
["Introduction", "NER", "Question Answering", "Open Information Extracting", "Summarization", "Relation Extracting", "Text Classification", "Universal Task"],
title="GLiNER HandyLab",
theme=gr.themes.Base())
demo.queue()
demo.launch(debug=True, share=True)