Commit
·
2078a32
1
Parent(s):
6baec45
Update app.py
Browse files
app.py
CHANGED
@@ -183,7 +183,10 @@ def _method(text):
|
|
183 |
# output_dict = {d['label']: d['score'] for d in output_temp[0]}
|
184 |
|
185 |
if output_temp:
|
186 |
-
|
|
|
|
|
|
|
187 |
else:
|
188 |
# handle the case where output_temp is empty
|
189 |
output_dict = {}
|
|
|
183 |
# output_dict = {d['label']: d['score'] for d in output_temp[0]}
|
184 |
|
185 |
if output_temp:
|
186 |
+
try:
|
187 |
+
output_dict = {d['label']: d['score'] for d in output_temp[0]}
|
188 |
+
except:
|
189 |
+
pass
|
190 |
else:
|
191 |
# handle the case where output_temp is empty
|
192 |
output_dict = {}
|