Spaces:
Runtime error
Runtime error
publichealthsurveillance
commited on
Commit
•
0101f9c
1
Parent(s):
b5eb59d
Update app.py
Browse files
app.py
CHANGED
@@ -21,13 +21,13 @@ def MentalBERT(text):
|
|
21 |
results = predictor_mental.predict(str(text))
|
22 |
return str(results)
|
23 |
|
24 |
-
def
|
25 |
results = predictor_phs.predict(str(text))
|
26 |
return str(results)
|
27 |
|
28 |
bert_io = gr.Interface(fn=BERT, inputs="text", outputs="text")
|
29 |
mental_io = gr.Interface(fn=MentalBERT, inputs="text", outputs="text")
|
30 |
-
phs_io = gr.Interface(fn=
|
31 |
|
32 |
Parallel(bert_io, mental_io, phs_io,
|
33 |
examples=examples,
|
|
|
21 |
results = predictor_mental.predict(str(text))
|
22 |
return str(results)
|
23 |
|
24 |
+
def PHSBERT(text):
|
25 |
results = predictor_phs.predict(str(text))
|
26 |
return str(results)
|
27 |
|
28 |
bert_io = gr.Interface(fn=BERT, inputs="text", outputs="text")
|
29 |
mental_io = gr.Interface(fn=MentalBERT, inputs="text", outputs="text")
|
30 |
+
phs_io = gr.Interface(fn=PHSBERT, inputs="text", outputs="text")
|
31 |
|
32 |
Parallel(bert_io, mental_io, phs_io,
|
33 |
examples=examples,
|