Update app.py
Browse files
app.py
CHANGED
@@ -18,6 +18,7 @@ def predict_image(img):
|
|
18 |
prediction=model.predict(img_4d)[0]
|
19 |
return {classnames[i]: float(prediction[i]) for i in range(len(classnames))}
|
20 |
|
|
|
21 |
#Gradio interface
|
22 |
image = gr.inputs.Image(shape=(224, 224))
|
23 |
label = gr.outputs.Label(num_top_classes=3)
|
|
|
18 |
prediction=model.predict(img_4d)[0]
|
19 |
return {classnames[i]: float(prediction[i]) for i in range(len(classnames))}
|
20 |
|
21 |
+
|
22 |
#Gradio interface
|
23 |
image = gr.inputs.Image(shape=(224, 224))
|
24 |
label = gr.outputs.Label(num_top_classes=3)
|