Spaces:
Runtime error
Runtime error
update app.py
Browse files
app.py
CHANGED
|
@@ -42,10 +42,10 @@ with gr.Blocks(title="ViT ImageNet Classification - ClassCat",
|
|
| 42 |
with gr.Column():
|
| 43 |
input_image = gr.Image(type="pil", image_mode="RGB", shape=(224, 224))
|
| 44 |
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
|
| 50 |
output_label=gr.Label(label="Probabilities", num_top_classes=3)
|
| 51 |
|
|
|
|
| 42 |
with gr.Column():
|
| 43 |
input_image = gr.Image(type="pil", image_mode="RGB", shape=(224, 224))
|
| 44 |
|
| 45 |
+
with gr.Row():
|
| 46 |
+
gr.Examples(['./samples/cheetah.jpg'], label='Sample images : cheetah', inputs=input_image)
|
| 47 |
+
gr.Examples(['./samples/lion.jpg'], label='lion', inputs=input_image)
|
| 48 |
+
#gr.Examples(example_files, inputs=input_image)
|
| 49 |
|
| 50 |
output_label=gr.Label(label="Probabilities", num_top_classes=3)
|
| 51 |
|