bug fix
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def classify_image(img):
|
|
| 15 |
pred, ind, probs = learner.predict(img)
|
| 16 |
return dict(zip(categories,map(float,probs)))
|
| 17 |
|
| 18 |
-
image = gr.
|
| 19 |
label = gr.outputs.Label()
|
| 20 |
iface = gr.Interface(fn=classify_image, inputs=image, outputs=label)
|
| 21 |
iface.launch()
|
|
|
|
| 15 |
pred, ind, probs = learner.predict(img)
|
| 16 |
return dict(zip(categories,map(float,probs)))
|
| 17 |
|
| 18 |
+
image = gr.inputs.Image(shape = (192, 192))
|
| 19 |
label = gr.outputs.Label()
|
| 20 |
iface = gr.Interface(fn=classify_image, inputs=image, outputs=label)
|
| 21 |
iface.launch()
|