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