Spaces:
Sleeping
Sleeping
Updated the syntax to fit the new version of Gradio
Browse files
app.py
CHANGED
@@ -19,8 +19,8 @@ def classify_image(img):
|
|
19 |
return dict(zip(categories, map(float,probs)))
|
20 |
|
21 |
# Cell
|
22 |
-
image = gr.
|
23 |
-
label = gr.
|
24 |
examples = ['blackbear.jpg', 'grizzlybear.jpg', 'teddybear.jpg', 'panda.jpg', 'dunno.jpg']
|
25 |
|
26 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
|
|
19 |
return dict(zip(categories, map(float,probs)))
|
20 |
|
21 |
# Cell
|
22 |
+
image = gr.Image(height=192, width=192)
|
23 |
+
label = gr.Label()
|
24 |
examples = ['blackbear.jpg', 'grizzlybear.jpg', 'teddybear.jpg', 'panda.jpg', 'dunno.jpg']
|
25 |
|
26 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|