Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,8 +20,8 @@ def classify_image(img):
|
|
20 |
return dict(zip(categories, map(float,probs)))
|
21 |
|
22 |
# %% ../app.ipynb 12
|
23 |
-
image = gr.
|
24 |
-
label = gr.
|
25 |
examples = ['dog.jpg', 'cat.jpg', 'dunno.jpg']
|
26 |
|
27 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
|
|
20 |
return dict(zip(categories, map(float,probs)))
|
21 |
|
22 |
# %% ../app.ipynb 12
|
23 |
+
image = gr.Image()
|
24 |
+
label = gr.Label()
|
25 |
examples = ['dog.jpg', 'cat.jpg', 'dunno.jpg']
|
26 |
|
27 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|