Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,6 @@ def classify_text(text):
|
|
19 |
for result in results for item in result
|
20 |
]
|
21 |
output = {}
|
22 |
-
formatted_results = formatted_results[0]
|
23 |
print(formatted_results)
|
24 |
for i in range(len(formatted_results)):
|
25 |
output[formatted_results[i]['label']] = formatted_results[i]['score']
|
|
|
19 |
for result in results for item in result
|
20 |
]
|
21 |
output = {}
|
|
|
22 |
print(formatted_results)
|
23 |
for i in range(len(formatted_results)):
|
24 |
output[formatted_results[i]['label']] = formatted_results[i]['score']
|