Spaces:
Sleeping
Sleeping
rm interface params
Browse files
app.py
CHANGED
|
@@ -15,10 +15,9 @@ def classify_image(img):
|
|
| 15 |
image = gr.components.Image(type="pil", height=224, width=224)
|
| 16 |
label = gr.components.Label(num_top_classes=3)
|
| 17 |
examples = ['cat.jpg', 'dog.jpg', 'dunno.jpg']
|
| 18 |
-
interpretation='default'
|
| 19 |
-
enable_queue=True
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
-
|
|
|
|
| 24 |
iface.launch(inline=False)
|
|
|
|
| 15 |
image = gr.components.Image(type="pil", height=224, width=224)
|
| 16 |
label = gr.components.Label(num_top_classes=3)
|
| 17 |
examples = ['cat.jpg', 'dog.jpg', 'dunno.jpg']
|
|
|
|
|
|
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
+
|
| 22 |
+
iface = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
| 23 |
iface.launch(inline=False)
|