tykimos commited on
Commit
a400b9e
1 Parent(s): c707de6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def predict(image):
43
  data[0] = normalized_image_array
44
 
45
  # run the inference
46
- prediction = model.predict(data)
47
  confidences = {label_dict[i]: float(prediction[i]) for i in range(4)}
48
 
49
  return confidences
 
43
  data[0] = normalized_image_array
44
 
45
  # run the inference
46
+ prediction = model.predict(data)[0]
47
  confidences = {label_dict[i]: float(prediction[i]) for i in range(4)}
48
 
49
  return confidences