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