Spaces:
Runtime error
Runtime error
Manuel Araoz
commited on
Commit
·
544d02c
1
Parent(s):
896c0a3
wut
Browse files
app.py
CHANGED
|
@@ -23,8 +23,8 @@ def classify_image(img):
|
|
| 23 |
pred, idx, probs = learn.predict(img)
|
| 24 |
return dict(zip(categories, map(float, probs)))
|
| 25 |
|
| 26 |
-
image = gr.
|
| 27 |
-
label = gr.
|
| 28 |
examples = ['dog.jpg', 'cat.jpg', 'dunno.jpg']
|
| 29 |
|
| 30 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
|
|
|
| 23 |
pred, idx, probs = learn.predict(img)
|
| 24 |
return dict(zip(categories, map(float, probs)))
|
| 25 |
|
| 26 |
+
image = gr.Image(shape=(192,192))
|
| 27 |
+
label = gr.Label()
|
| 28 |
examples = ['dog.jpg', 'cat.jpg', 'dunno.jpg']
|
| 29 |
|
| 30 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|