Spaces:
Sleeping
Sleeping
Commit
Β·
217b6cf
1
Parent(s):
debbb1a
Update app.py
Browse files
app.py
CHANGED
@@ -77,13 +77,6 @@ interface_words = gr.Interface(
|
|
77 |
examples=example_main,
|
78 |
)
|
79 |
|
80 |
-
interface_model_G = gr.Interface.load(
|
81 |
-
name="huggingface/DReAMy-lib/t5-base-DreamBank-Generation-Emot-Char",
|
82 |
-
description=description_G,
|
83 |
-
examples=examples_g,
|
84 |
-
title="SA Generation",
|
85 |
-
)
|
86 |
-
|
87 |
interface_model_L = gr.Interface.load(
|
88 |
name="huggingface/DReAMy-lib/xlm-roberta-large-DreamBank-emotion-presence",
|
89 |
description=description_L,
|
@@ -98,6 +91,13 @@ interface_model_S = gr.Interface.load(
|
|
98 |
title="SA Base English-Only",
|
99 |
)
|
100 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
interface_model_RE = gr.Interface.load(
|
102 |
name="huggingface/DReAMy-lib/t5-base-DreamBank-Generation-Act-Char",
|
103 |
description=description_R,
|
@@ -113,7 +113,12 @@ interface_model_NER = gr.Interface.load(
|
|
113 |
title="NER Generation",
|
114 |
)
|
115 |
|
|
|
|
|
|
|
|
|
|
|
116 |
gr.TabbedInterface(
|
117 |
-
[interface_words, interface_model_L, interface_model_S,
|
118 |
-
["Main", "NER Generation", "SA Large Multilingual", "SA Base En", "
|
119 |
).launch()
|
|
|
77 |
examples=example_main,
|
78 |
)
|
79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
interface_model_L = gr.Interface.load(
|
81 |
name="huggingface/DReAMy-lib/xlm-roberta-large-DreamBank-emotion-presence",
|
82 |
description=description_L,
|
|
|
91 |
title="SA Base English-Only",
|
92 |
)
|
93 |
|
94 |
+
# interface_model_G = gr.Interface.load(
|
95 |
+
# name="huggingface/DReAMy-lib/t5-base-DreamBank-Generation-Emot-Char",
|
96 |
+
# description=description_G,
|
97 |
+
# examples=examples_g,
|
98 |
+
# title="SA Generation",
|
99 |
+
# )
|
100 |
+
|
101 |
interface_model_RE = gr.Interface.load(
|
102 |
name="huggingface/DReAMy-lib/t5-base-DreamBank-Generation-Act-Char",
|
103 |
description=description_R,
|
|
|
113 |
title="NER Generation",
|
114 |
)
|
115 |
|
116 |
+
# gr.TabbedInterface(
|
117 |
+
# [interface_words, interface_model_L, interface_model_S, interface_model_G, interface_model_RE, interface_model_NER],
|
118 |
+
# ["Main", "NER Generation", "SA Large Multilingual", "SA Base En", "SA En Generation", "RE Generation"]
|
119 |
+
# ).launch()
|
120 |
+
|
121 |
gr.TabbedInterface(
|
122 |
+
[interface_words, interface_model_L, interface_model_S, interface_model_RE, interface_model_NER],
|
123 |
+
["Main", "NER Generation", "SA Large Multilingual", "SA Base En", "RE Generation"]
|
124 |
).launch()
|