Spaces:
Runtime error
Runtime error
publichealthsurveillance
commited on
Commit
•
73adea4
1
Parent(s):
ec54c97
Update app.py
Browse files
app.py
CHANGED
@@ -5,11 +5,6 @@ predictor = ktrain.load_predictor('bert')
|
|
5 |
|
6 |
def func(text):
|
7 |
results = predictor.predict(str(text))
|
8 |
-
return str(
|
9 |
-
'''
|
10 |
-
results = [int(element) for element in results]
|
11 |
-
return str(results[0])
|
12 |
-
'''
|
13 |
-
|
14 |
|
15 |
gr.Interface(fn=func, inputs="text", outputs="text").launch()
|
|
|
5 |
|
6 |
def func(text):
|
7 |
results = predictor.predict(str(text))
|
8 |
+
return str(results)
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
gr.Interface(fn=func, inputs="text", outputs="text").launch()
|