Spaces:
Runtime error
Runtime error
Chan Lee
commited on
Commit
•
10fe64b
1
Parent(s):
7811d35
app.py
CHANGED
@@ -109,17 +109,28 @@ suicide = Parallel(suicide_bert_io, suicide_mental_io, suicide_phs_io,
|
|
109 |
title=suicide_title,
|
110 |
description=suicide_desc)
|
111 |
|
112 |
-
stress_bert_io, stress_mental_io, stress_phs_io = make_interfaces("st/")
|
113 |
-
stress = Parallel(stress_bert_io, stress_mental_io, stress_phs_io,
|
114 |
-
|
115 |
-
|
116 |
-
|
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 |
interfaces = [vs, hm, dep, covid, suicide, stress, other]
|
125 |
interface_names = [vs_title, hm_title, dep_title, covid_title, suicide_title, stress_title, other_title]
|
|
|
109 |
title=suicide_title,
|
110 |
description=suicide_desc)
|
111 |
|
112 |
+
# stress_bert_io, stress_mental_io, stress_phs_io = make_interfaces("st/")
|
113 |
+
# stress = Parallel(stress_bert_io, stress_mental_io, stress_phs_io,
|
114 |
+
# examples=stress_examples,
|
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 |
+
|
126 |
+
def model(text):
|
127 |
+
return "Predictions are currently unavailable."
|
128 |
+
|
129 |
+
# dep = Interface(fn=model, inputs="text", outputs="text", title=dep_title, description=desc)
|
130 |
+
# covid = Interface(fn=model, inputs="text", outputs="text", title=covid_title, description=desc)
|
131 |
+
# suicide = Interface(fn=model, inputs="text", outputs="text", title=suicide_title, description=desc)
|
132 |
+
stress = Interface(fn=model, inputs="text", outputs="text", title=stress_title, description=desc)
|
133 |
+
other = Interface(fn=model, inputs="text", outputs="text", title=other_title, description=desc)
|
134 |
|
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]
|