Update app.py
Browse files
app.py
CHANGED
|
@@ -10,8 +10,8 @@ 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 |
examples = ['sword.jpg', 'shield.jpg']
|
| 16 |
|
| 17 |
inf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
|
|
|
| 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 |
examples = ['sword.jpg', 'shield.jpg']
|
| 16 |
|
| 17 |
inf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|