Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,9 @@ 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,
|
|
|
|
|
|
|
| 26 |
intf.launch(inline=False)
|
| 27 |
|
| 28 |
# def greet(name):
|
|
|
|
| 22 |
label = gr.outputs.Label()
|
| 23 |
examples = ['dog.jpg', 'cat.jpg', 'dunno.jpg']
|
| 24 |
|
| 25 |
+
intf = gr.Interface(fn=classify_image,inputs=gr.Image(type=“pil”),outputs=gr.Label(),examples=[‘dog.jpg’, ‘cat.jpg’])
|
| 26 |
+
|
| 27 |
+
# intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
| 28 |
intf.launch(inline=False)
|
| 29 |
|
| 30 |
# def greet(name):
|