Spaces:
Runtime error
Runtime error
publichealthsurveillance
commited on
Commit
·
d6e50e0
1
Parent(s):
37751e8
Update app.py
Browse files
app.py
CHANGED
@@ -38,8 +38,19 @@ def model(text):
|
|
38 |
return "Predictions unavailable - to be completed."
|
39 |
|
40 |
hm = Interface(fn=model, inputs="text", outputs="text")
|
41 |
-
|
42 |
-
|
43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
TabbedInterface(interfaces, interface_names).launch()
|
|
|
38 |
return "Predictions unavailable - to be completed."
|
39 |
|
40 |
hm = Interface(fn=model, inputs="text", outputs="text")
|
41 |
+
dep = Interface(fn=model, inputs="text", outputs="text")
|
42 |
+
covid = Interface(fn=model, inputs="text", outputs="text")
|
43 |
+
suicide = Interface(fn=model, inputs="text", outputs="text")
|
44 |
+
stress = Interface(fn=model, inputs="text", outputs="text")
|
45 |
+
other = Interface(fn=model, inputs="text", outputs="text")
|
46 |
+
|
47 |
+
interfaces = [vs, hm, dep, covid, suicide, stress, other]
|
48 |
+
interface_names = ["Vaccine Sentiment Task",
|
49 |
+
"Health Mention Task",
|
50 |
+
"Depression Task",
|
51 |
+
"COVID Related Task",
|
52 |
+
"Suicide Task",
|
53 |
+
"Stress Task",
|
54 |
+
"Other Health Related Task"]
|
55 |
|
56 |
TabbedInterface(interfaces, interface_names).launch()
|