Spaces:
Runtime error
Runtime error
Commit
·
0aa4af4
1
Parent(s):
392eb28
added examples
Browse files- app.py +2 -1
- batman.webp +0 -0
- joker.jpg +0 -0
app.py
CHANGED
|
@@ -11,6 +11,7 @@ def classify_image(img):
|
|
| 11 |
|
| 12 |
image = gr.inputs.Image(shape=(192, 192))
|
| 13 |
label = gr.outputs.Label()
|
|
|
|
| 14 |
|
| 15 |
-
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label)
|
| 16 |
intf.launch(inline=False)
|
|
|
|
| 11 |
|
| 12 |
image = gr.inputs.Image(shape=(192, 192))
|
| 13 |
label = gr.outputs.Label()
|
| 14 |
+
examples = ['batman.webp', 'joker.jpg']
|
| 15 |
|
| 16 |
+
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
| 17 |
intf.launch(inline=False)
|
batman.webp
ADDED
|
joker.jpg
ADDED
|