Spaces:
Runtime error
Runtime error
Chan Lee
commited on
Commit
•
fb5aa1c
1
Parent(s):
5db59cc
app.py
CHANGED
@@ -79,17 +79,17 @@ def make_interfaces(folder):
|
|
79 |
|
80 |
return bert_io, mental_io, phs_io
|
81 |
|
82 |
-
vs_bert_io, vs_mental_io, vs_phs_io = make_interfaces("vs/")
|
83 |
-
vs = Parallel(vs_bert_io, vs_mental_io, vs_phs_io,
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
hm_bert_io, hm_mental_io, hm_phs_io = make_interfaces("hm/")
|
89 |
-
hm = Parallel(hm_bert_io, hm_mental_io, hm_phs_io,
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
|
94 |
# dep_bert_io, dep_mental_io, dep_phs_io = make_interfaces("dp/")
|
95 |
# dep = Parallel(dep_bert_io, dep_mental_io, dep_phs_io,
|
@@ -115,11 +115,11 @@ stress = Parallel(stress_bert_io, stress_mental_io, stress_phs_io,
|
|
115 |
title=stress_title,
|
116 |
description=stress_desc)
|
117 |
|
118 |
-
other_bert_io, other_mental_io, other_phs_io = make_interfaces("ot/")
|
119 |
-
other = Parallel(other_bert_io, other_mental_io, other_phs_io,
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
|
124 |
desc = "Task is currently unavailable."
|
125 |
|
@@ -135,7 +135,10 @@ def model(text):
|
|
135 |
# interfaces = [vs, hm, dep, covid, suicide, stress, other]
|
136 |
# interface_names = [vs_title, hm_title, dep_title, covid_title, suicide_title, stress_title, other_title]
|
137 |
|
138 |
-
interfaces = [vs, hm, covid, stress, other]
|
139 |
-
interface_names = [vs_title, hm_title, covid_title, stress_title, other_title]
|
|
|
|
|
|
|
140 |
|
141 |
TabbedInterface(interfaces, interface_names).launch()
|
|
|
79 |
|
80 |
return bert_io, mental_io, phs_io
|
81 |
|
82 |
+
# vs_bert_io, vs_mental_io, vs_phs_io = make_interfaces("vs/")
|
83 |
+
# vs = Parallel(vs_bert_io, vs_mental_io, vs_phs_io,
|
84 |
+
# examples=vs_examples,
|
85 |
+
# title=vs_title,
|
86 |
+
# description=vs_desc)
|
87 |
+
|
88 |
+
# hm_bert_io, hm_mental_io, hm_phs_io = make_interfaces("hm/")
|
89 |
+
# hm = Parallel(hm_bert_io, hm_mental_io, hm_phs_io,
|
90 |
+
# examples=hm_examples,
|
91 |
+
# title=hm_title,
|
92 |
+
# description=hm_desc)
|
93 |
|
94 |
# dep_bert_io, dep_mental_io, dep_phs_io = make_interfaces("dp/")
|
95 |
# dep = Parallel(dep_bert_io, dep_mental_io, dep_phs_io,
|
|
|
115 |
title=stress_title,
|
116 |
description=stress_desc)
|
117 |
|
118 |
+
# other_bert_io, other_mental_io, other_phs_io = make_interfaces("ot/")
|
119 |
+
# other = Parallel(other_bert_io, other_mental_io, other_phs_io,
|
120 |
+
# examples=other_examples,
|
121 |
+
# title=other_title,
|
122 |
+
# description=other_desc)
|
123 |
|
124 |
desc = "Task is currently unavailable."
|
125 |
|
|
|
135 |
# interfaces = [vs, hm, dep, covid, suicide, stress, other]
|
136 |
# interface_names = [vs_title, hm_title, dep_title, covid_title, suicide_title, stress_title, other_title]
|
137 |
|
138 |
+
# interfaces = [vs, hm, covid, stress, other]
|
139 |
+
# interface_names = [vs_title, hm_title, covid_title, stress_title, other_title]
|
140 |
+
|
141 |
+
interfaces = [covid, stress]
|
142 |
+
interface_names = [covid_title, stress_title]
|
143 |
|
144 |
TabbedInterface(interfaces, interface_names).launch()
|