Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,16 +62,16 @@ with gr.Blocks() as iface:
|
|
| 62 |
output_label = gr.Label(num_top_classes=3, label="Predictions")
|
| 63 |
|
| 64 |
gr.Examples(
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
|
| 76 |
|
| 77 |
submit_btn.click(fn=classify_image, inputs=input_image, outputs=output_label)
|
|
|
|
| 62 |
output_label = gr.Label(num_top_classes=3, label="Predictions")
|
| 63 |
|
| 64 |
gr.Examples(
|
| 65 |
+
examples=[
|
| 66 |
+
["test_images/king_of_diamonds.jpg"],
|
| 67 |
+
["test_images/jack_of_spades.jpg"],
|
| 68 |
+
["test_images/ace_of_diamonds.jpg"],
|
| 69 |
+
["test_images/three_of_hearts.jpg"],
|
| 70 |
+
["test_images/ace_of_spades.jpg"]
|
| 71 |
+
],
|
| 72 |
+
inputs=input_image,
|
| 73 |
+
label="Try an example"
|
| 74 |
+
)
|
| 75 |
|
| 76 |
|
| 77 |
submit_btn.click(fn=classify_image, inputs=input_image, outputs=output_label)
|