another oney
Browse files
app.py
CHANGED
@@ -24,8 +24,8 @@ def classify_image(img):
|
|
24 |
return dict(zip(categories, map(float,probs)))
|
25 |
|
26 |
# Cell
|
27 |
-
image = gr.
|
28 |
-
label = gr.
|
29 |
examples = ['dog.jpg', 'cat.jpg', 'dunno.jpg']
|
30 |
|
31 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
|
|
24 |
return dict(zip(categories, map(float,probs)))
|
25 |
|
26 |
# Cell
|
27 |
+
image = gr.Image()
|
28 |
+
label = gr.Label()
|
29 |
examples = ['dog.jpg', 'cat.jpg', 'dunno.jpg']
|
30 |
|
31 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|