Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ def predict_image(img):
|
|
81 |
prediction=model.predict(img_4d)[0]
|
82 |
return {class_names[i]: float(prediction[i]) for i in range(5)}
|
83 |
|
84 |
-
|
85 |
#label = gr.outputs.Label(num_top_classes=5)
|
86 |
label = gr.Label(num_top_classes=5)
|
87 |
#gr.Interface(fn=predict_image, inputs=image, outputs=label,interpretation='default').launch(debug='True')
|
|
|
81 |
prediction=model.predict(img_4d)[0]
|
82 |
return {class_names[i]: float(prediction[i]) for i in range(5)}
|
83 |
|
84 |
+
image = gr.Image(height=180,width=180)
|
85 |
#label = gr.outputs.Label(num_top_classes=5)
|
86 |
label = gr.Label(num_top_classes=5)
|
87 |
#gr.Interface(fn=predict_image, inputs=image, outputs=label,interpretation='default').launch(debug='True')
|