Spaces:
Runtime error
Runtime error
Commit
·
e68d663
1
Parent(s):
8b41d91
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,10 +10,7 @@ def classify_image(img):
|
|
| 10 |
pred, idx, probs = learn.predict(img)
|
| 11 |
return dict(zip(categories, map(float, probs)))
|
| 12 |
|
| 13 |
-
image=gr.
|
| 14 |
-
label = gr.
|
| 15 |
-
|
| 16 |
-
'blackbear2.jpg','brownbear.jpg',
|
| 17 |
-
'polar.jpg']
|
| 18 |
-
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
| 19 |
intf.launch(inline=False)
|
|
|
|
| 10 |
pred, idx, probs = learn.predict(img)
|
| 11 |
return dict(zip(categories, map(float, probs)))
|
| 12 |
|
| 13 |
+
image=gr.Image(height=192,width=192))
|
| 14 |
+
label = gr.Label()
|
| 15 |
+
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label)
|
|
|
|
|
|
|
|
|
|
| 16 |
intf.launch(inline=False)
|