Spaces:
Sleeping
Sleeping
Update app.py
Browse filesgradio version changed from 4.32.5 to 4.20.0 to fix html rendering
app.py
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
-
import subprocess
|
2 |
-
subprocess.run(["pip", "uninstall", "gradio"])
|
3 |
-
subprocess.run(["pip", "install", "utca>=0.1.0"])
|
4 |
-
subprocess.run(["pip", "install", "gradio==4.
|
5 |
-
|
6 |
-
import gradio as gr
|
7 |
-
from interfaces import ner_interface, qa_interface, open_ie_interface, summarization_interface, landing_interface, relation_e_interface, text_cleaning_interface
|
8 |
-
|
9 |
-
demo = gr.TabbedInterface([landing_interface, ner_interface, qa_interface, open_ie_interface, summarization_interface, relation_e_interface, text_cleaning_interface],
|
10 |
-
["Introduction", "NER", "Question Answering", "Open Information Extracting", "Summarization", "Relation Extracting", "Text Cleaning"],
|
11 |
-
title="UTC (Universal Token Classification) HandyLab",
|
12 |
-
theme=gr.themes.Base())
|
13 |
-
|
14 |
-
demo.queue()
|
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", "install", "gradio==4.20.0"])
|
5 |
+
|
6 |
+
import gradio as gr
|
7 |
+
from interfaces import ner_interface, qa_interface, open_ie_interface, summarization_interface, landing_interface, relation_e_interface, text_cleaning_interface
|
8 |
+
|
9 |
+
demo = gr.TabbedInterface([landing_interface, ner_interface, qa_interface, open_ie_interface, summarization_interface, relation_e_interface, text_cleaning_interface],
|
10 |
+
["Introduction", "NER", "Question Answering", "Open Information Extracting", "Summarization", "Relation Extracting", "Text Cleaning"],
|
11 |
+
title="UTC (Universal Token Classification) HandyLab",
|
12 |
+
theme=gr.themes.Base())
|
13 |
+
|
14 |
+
demo.queue()
|
15 |
demo.launch(debug=True, share=True)
|