Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,9 +20,11 @@ def classify_image(img):
|
|
| 20 |
# Cell
|
| 21 |
# image = gr.inputs.Image(shape=(192, 192))
|
| 22 |
# label = gr.outputs.Label()
|
|
|
|
|
|
|
| 23 |
examples = ['dog.jpg', 'cat.jpg', 'dunno.jpg']
|
| 24 |
|
| 25 |
-
intf = gr.Interface(fn=classify_image,inputs=gr.Image(
|
| 26 |
|
| 27 |
# intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
| 28 |
intf.launch(inline=False)
|
|
|
|
| 20 |
# Cell
|
| 21 |
# image = gr.inputs.Image(shape=(192, 192))
|
| 22 |
# label = gr.outputs.Label()
|
| 23 |
+
image = gr.inputs.Image(shape=(192, 192))
|
| 24 |
+
label = gr.outputs.Label()
|
| 25 |
examples = ['dog.jpg', 'cat.jpg', 'dunno.jpg']
|
| 26 |
|
| 27 |
+
intf = gr.Interface(fn=classify_image,inputs=gr.Image(),outputs=gr.Label(),examples=examples)
|
| 28 |
|
| 29 |
# intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
| 30 |
intf.launch(inline=False)
|