Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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 |
|