BioMike commited on
Commit
55ee22f
1 Parent(s): 90bf0d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -14
app.py CHANGED
@@ -1,15 +1,17 @@
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.31.5"])
5
-
6
- import gradio as gr
7
- from interfaces import ner_interface, qa_interface, open_ie_interface, summarization_interface, landing_interface, relation_e_interface, universal_interface
8
-
9
- demo = gr.TabbedInterface([landing_interface, ner_interface, qa_interface, open_ie_interface, summarization_interface, relation_e_interface, universal_interface],
10
- ["Introduction", "NER", "Question Answering", "Open Information Extracting", "Summarization", "Relation Extracting", "Universal Task"],
11
- title="GLiNER 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", "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)