Hakim571 commited on
Commit
de65c5b
1 Parent(s): ce45337

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ def import_and_predict(image_data):
18
  image = np.vstack([x])
19
  prediction = model.predict(image)
20
  labels=class_names
21
- confidences = {labels[i]: float(prediction[i]) for i in range(15)}
22
  return confidences
23
 
24
  gr.Interface(fn=import_and_predict,
 
18
  image = np.vstack([x])
19
  prediction = model.predict(image)
20
  labels=class_names
21
+ confidences = {labels[i]: float(prediction[0][i]) for i in range(15)}
22
  return confidences
23
 
24
  gr.Interface(fn=import_and_predict,