Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,8 +26,8 @@ def predict(text):
|
|
26 |
if result[i]['score'] >= ch:
|
27 |
ch = result[i]['score']
|
28 |
chch = i
|
29 |
-
|
30 |
-
ress[
|
31 |
|
32 |
return ress
|
33 |
|
|
|
26 |
if result[i]['score'] >= ch:
|
27 |
ch = result[i]['score']
|
28 |
chch = i
|
29 |
+
text_tmp = result[chch]["label"]
|
30 |
+
ress[text_tmp] = int(result[chch]["score"] * 10000) / 100
|
31 |
|
32 |
return ress
|
33 |
|