Spaces:
Running
Running
Add Media codes interface
Browse files
app.py
CHANGED
@@ -11,6 +11,7 @@ from interfaces.ner import download_models as download_spacy_models
|
|
11 |
from interfaces.illframes import demo as illframes_demo
|
12 |
from interfaces.ontolisst import demo as ontolisst_demo
|
13 |
from interfaces.emotion9 import demo as e9_demo
|
|
|
14 |
from utils import download_hf_models, df_h, set_hf_cache_dir
|
15 |
|
16 |
|
@@ -44,8 +45,8 @@ with gr.Blocks(css=css) as demo:
|
|
44 |
""")
|
45 |
|
46 |
gr.TabbedInterface(
|
47 |
-
interface_list=[cap_demo, cap_minor_demo, manifesto_demo, sentiment_demo, emotion_demo, e9_demo,illframes_demo, ner_demo, ontolisst_demo],
|
48 |
-
tab_names=["CAP", "CAP Minor Codes", "Manifesto", "Sentiment (3)", "Emotions (6)","Emotions (9)", "ILLFRAMES", "Named Entity Recognition", "ONTOLISST"]
|
49 |
)
|
50 |
|
51 |
if __name__ == "__main__":
|
|
|
11 |
from interfaces.illframes import demo as illframes_demo
|
12 |
from interfaces.ontolisst import demo as ontolisst_demo
|
13 |
from interfaces.emotion9 import demo as e9_demo
|
14 |
+
from interfaces.cap_media_demo import demo as cap_media_demo
|
15 |
from utils import download_hf_models, df_h, set_hf_cache_dir
|
16 |
|
17 |
|
|
|
45 |
""")
|
46 |
|
47 |
gr.TabbedInterface(
|
48 |
+
interface_list=[cap_demo, cap_media_demo, cap_minor_demo, manifesto_demo, sentiment_demo, emotion_demo, e9_demo,illframes_demo, ner_demo, ontolisst_demo],
|
49 |
+
tab_names=["CAP", "CAP Media Codes", "CAP Minor Codes", "Manifesto", "Sentiment (3)", "Emotions (6)","Emotions (9)", "ILLFRAMES", "Named Entity Recognition", "ONTOLISST"]
|
50 |
)
|
51 |
|
52 |
if __name__ == "__main__":
|