Spaces:
Runtime error
Runtime error
Hugo HE
commited on
Commit
·
ea9241e
1
Parent(s):
eb46cb7
Update app.py
Browse files
app.py
CHANGED
|
@@ -79,6 +79,6 @@ def predict_image(image):
|
|
| 79 |
return dict(zip(class_top5, map(float, prediction_score.numpy())))
|
| 80 |
image = gr.Image(type='pil')
|
| 81 |
label = gr.Label()
|
| 82 |
-
examples = ['1.png', '2.png', '3.png']
|
| 83 |
intf = gr.Interface(fn=predict_image, inputs=image, outputs=label, examples=examples)
|
| 84 |
intf.launch(inline=True)
|
|
|
|
| 79 |
return dict(zip(class_top5, map(float, prediction_score.numpy())))
|
| 80 |
image = gr.Image(type='pil')
|
| 81 |
label = gr.Label()
|
| 82 |
+
examples = ['1.png', '2.png', '3.png', '4.png', '5.png', '6.png', '7.png', '8.png']
|
| 83 |
intf = gr.Interface(fn=predict_image, inputs=image, outputs=label, examples=examples)
|
| 84 |
intf.launch(inline=True)
|