Sa-m commited on
Commit
f0f8580
1 Parent(s): d48647c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,7 +48,7 @@ def classify_image(inp):
48
  # Assuming prediction is a dictionary with label keys
49
  # result = [f"{label}: {prediction[label]:.2f}" for label in label_order]
50
  # return ", ".join(result)
51
- result = [f"{label}: {prediction[y]:.2f}" for label, y in labels.items()]
52
  return ", ".join(result)
53
 
54
 
 
48
  # Assuming prediction is a dictionary with label keys
49
  # result = [f"{label}: {prediction[label]:.2f}" for label in label_order]
50
  # return ", ".join(result)
51
+ result = [f"{label}: {prediction[label]:.2f}" for label in labels]
52
  return ", ".join(result)
53
 
54