Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,8 @@ def round_to_2(num):
|
|
| 9 |
return round(num, 2)
|
| 10 |
|
| 11 |
def format_output(out_list):
|
| 12 |
-
|
|
|
|
| 13 |
for dictionary in out_list:
|
| 14 |
if dictionary["label"] =='W':
|
| 15 |
white = round_to_2(dictionary["score"])
|
|
|
|
| 9 |
return round(num, 2)
|
| 10 |
|
| 11 |
def format_output(out_list):
|
| 12 |
+
if len(out_list) == 1:
|
| 13 |
+
out_list = out_list[0]
|
| 14 |
for dictionary in out_list:
|
| 15 |
if dictionary["label"] =='W':
|
| 16 |
white = round_to_2(dictionary["score"])
|