Spaces:
Sleeping
Sleeping
Commit
•
0340d06
1
Parent(s):
cfb367b
Minor changes
Browse files
app.py
CHANGED
@@ -15,10 +15,10 @@ def classify_image(img):
|
|
15 |
return dict(zip(categories, map(float, probs)))
|
16 |
|
17 |
|
18 |
-
image = gr.Image(shape=(192, 192))
|
19 |
-
label = gr.Label()
|
20 |
examples = ['dog.jpg', 'cat.jpg']
|
21 |
|
22 |
-
iface = gr.Interface(fn=classify_image, inputs=image,
|
23 |
-
outputs=label, examples=examples)
|
24 |
-
iface.launch(inline=False)
|
|
|
15 |
return dict(zip(categories, map(float, probs)))
|
16 |
|
17 |
|
18 |
+
# image = gr.Image(shape=(192, 192))
|
19 |
+
# label = gr.Label()
|
20 |
examples = ['dog.jpg', 'cat.jpg']
|
21 |
|
22 |
+
iface = gr.Interface(fn=classify_image, inputs='image',
|
23 |
+
outputs='label', examples=examples)
|
24 |
+
iface.launch(inline=False, share=True)
|