Commit
·
3bc4500
1
Parent(s):
778ff86
Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,10 @@ def _method(text):
|
|
66 |
# output_dict = {d['label']: d['score'] for d in output_temp[0]}
|
67 |
|
68 |
if output_temp:
|
69 |
-
|
|
|
|
|
|
|
70 |
else:
|
71 |
# handle the case where output_temp is empty
|
72 |
output_dict = {}
|
|
|
66 |
# output_dict = {d['label']: d['score'] for d in output_temp[0]}
|
67 |
|
68 |
if output_temp:
|
69 |
+
try:
|
70 |
+
output_dict = {d['label']: d['score'] for d in output_temp[0]}
|
71 |
+
except:
|
72 |
+
pass
|
73 |
else:
|
74 |
# handle the case where output_temp is empty
|
75 |
output_dict = {}
|