Qilex commited on
Commit
b5db008
·
1 Parent(s): 32d52a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- white = 0
 
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"])