Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,17 @@
|
|
1 |
-
import subprocess
|
2 |
-
subprocess.run(["pip", "uninstall", "gradio"])
|
3 |
-
subprocess.run(["pip", "install", "utca
|
4 |
-
subprocess.run(["pip", "
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
|
|
|
|
15 |
demo.launch(debug=True, share=True)
|
|
|
1 |
+
import subprocess
|
2 |
+
subprocess.run(["pip", "uninstall", "gradio"])
|
3 |
+
subprocess.run(["pip", "install", "utca==0.1.0"])
|
4 |
+
subprocess.run(["pip", "uninstall", "nltk"])
|
5 |
+
subprocess.run(["pip", "install", "gradio==4.31.5"])
|
6 |
+
subprocess.run(["pip", "install", "nltk=3.8.1"])
|
7 |
+
|
8 |
+
import gradio as gr
|
9 |
+
from interfaces import ner_interface, qa_interface, open_ie_interface, summarization_interface, landing_interface, relation_e_interface, universal_interface
|
10 |
+
|
11 |
+
demo = gr.TabbedInterface([landing_interface, ner_interface, qa_interface, open_ie_interface, summarization_interface, relation_e_interface, universal_interface],
|
12 |
+
["Introduction", "NER", "Question Answering", "Open Information Extracting", "Summarization", "Relation Extracting", "Universal Task"],
|
13 |
+
title="GLiNER HandyLab",
|
14 |
+
theme=gr.themes.Base())
|
15 |
+
|
16 |
+
demo.queue()
|
17 |
demo.launch(debug=True, share=True)
|