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