djsull commited on
Commit
ad29555
1 Parent(s): 72d67dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,8 +26,8 @@ def predict(text):
26
  if result[i]['score'] >= ch:
27
  ch = result[i]['score']
28
  chch = i
29
-
30
- ress[f'{result[chch]["label"]}'] = int(result[chch]["score"] * 10000) / 100
31
 
32
  return ress
33
 
 
26
  if result[i]['score'] >= ch:
27
  ch = result[i]['score']
28
  chch = i
29
+ text_tmp = result[chch]["label"]
30
+ ress[text_tmp] = int(result[chch]["score"] * 10000) / 100
31
 
32
  return ress
33