Spaces:
Running
Running
Add illframes tab
Browse files
app.py
CHANGED
@@ -13,6 +13,7 @@ from interfaces.sentiment import demo as sentiment_demo
|
|
13 |
from interfaces.emotion import demo as emotion_demo
|
14 |
from interfaces.ner import demo as ner_demo
|
15 |
from interfaces.ner import download_models as download_spacy_models
|
|
|
16 |
from utils import download_hf_models
|
17 |
|
18 |
with gr.Blocks() as demo:
|
@@ -35,8 +36,8 @@ with gr.Blocks() as demo:
|
|
35 |
""")
|
36 |
|
37 |
gr.TabbedInterface(
|
38 |
-
interface_list=[cap_demo, manifesto_demo, sentiment_demo, emotion_demo, ner_demo],
|
39 |
-
tab_names=["CAP", "Manifesto", "Sentiment (3)", "Emotions (6)", "Named Entity Recognition"],
|
40 |
)
|
41 |
|
42 |
if __name__ == "__main__":
|
|
|
13 |
from interfaces.emotion import demo as emotion_demo
|
14 |
from interfaces.ner import demo as ner_demo
|
15 |
from interfaces.ner import download_models as download_spacy_models
|
16 |
+
from interfaces.illframes import demo as illframes_demo
|
17 |
from utils import download_hf_models
|
18 |
|
19 |
with gr.Blocks() as demo:
|
|
|
36 |
""")
|
37 |
|
38 |
gr.TabbedInterface(
|
39 |
+
interface_list=[cap_demo, manifesto_demo, sentiment_demo, emotion_demo, ner_demo, illframes_demo],
|
40 |
+
tab_names=["CAP", "Manifesto", "Sentiment (3)", "Emotions (6)", "Named Entity Recognition", "Illframes"],
|
41 |
)
|
42 |
|
43 |
if __name__ == "__main__":
|