Karim-Gamal commited on
Commit
778ff86
·
1 Parent(s): 8a028bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -123,11 +123,9 @@ def _method(text):
123
  # output_dict = {d['label']: d['score'] for d in output_temp[0]}
124
 
125
  if output_temp:
126
-
127
  output_dict = {d['label']: d['score'] for d in output_temp[0]}
128
  else:
129
- # handle the case where output_temp is empty
130
- output_dict = {}
131
 
132
  try:
133
  input_list = list(output_dict.items())[:3]
 
123
  # output_dict = {d['label']: d['score'] for d in output_temp[0]}
124
 
125
  if output_temp:
 
126
  output_dict = {d['label']: d['score'] for d in output_temp[0]}
127
  else:
128
+ output_dict = {}
 
129
 
130
  try:
131
  input_list = list(output_dict.items())[:3]