andreslu commited on
Commit
62cbf4f
1 Parent(s): a54b7f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ def bart(prompt, num, return_score):
8
  if return_score:
9
  results = [(result[0], float(result[1]) * 100) for result in results]
10
  else:
11
- results = [(result[0], 0) for result in results]
12
  results_dict = {result[0]: float(result[1]) for result in results}
13
  return results_dict
14
 
 
8
  if return_score:
9
  results = [(result[0], float(result[1]) * 100) for result in results]
10
  else:
11
+ results = [(result, 0) for result in results]
12
  results_dict = {result[0]: float(result[1]) for result in results}
13
  return results_dict
14