Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,8 +20,8 @@ def classify_images(img):
|
|
| 20 |
pred.idx.probs=learn.predict(img)
|
| 21 |
return dict(zip(categories,map(float,probs)))
|
| 22 |
|
| 23 |
-
image=gr.
|
| 24 |
-
label=gr.
|
| 25 |
examples=['dog.jpg','cat.jpg']
|
| 26 |
|
| 27 |
intf=gr.Interface(fn=classify_image,inputs=image,outputs=label,exampes=examples)
|
|
|
|
| 20 |
pred.idx.probs=learn.predict(img)
|
| 21 |
return dict(zip(categories,map(float,probs)))
|
| 22 |
|
| 23 |
+
image=gr.Image(shape=(192,192))
|
| 24 |
+
label=gr.Label()
|
| 25 |
examples=['dog.jpg','cat.jpg']
|
| 26 |
|
| 27 |
intf=gr.Interface(fn=classify_image,inputs=image,outputs=label,exampes=examples)
|