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