Sa-m commited on
Commit
013a8d8
·
1 Parent(s): 0bf7749

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def classify_image(inp):
40
 
41
  label_order = ["Burger King", "KFC", "McDonalds", "Other", "Starbucks", "Subway"]
42
 
43
- result = {label: int(f"{prediction[0][labels[label]]:.6f}") for label in label_order}
44
 
45
  return result
46
 
 
40
 
41
  label_order = ["Burger King", "KFC", "McDonalds", "Other", "Starbucks", "Subway"]
42
 
43
+ result = {label: float(f"{prediction[0][labels[label]]:.6f}") for label in label_order}
44
 
45
  return result
46