Spaces:
Sleeping
Sleeping
Remove invalid example URLs causing 404
Browse files
app.py
CHANGED
|
@@ -116,16 +116,6 @@ def clear_fields():
|
|
| 116 |
title = "Fashion Item Classifier with Marqo-FashionSigLIP"
|
| 117 |
description = "Upload an image or provide a URL of a fashion item to classify it using [Marqo-FashionSigLIP](https://huggingface.co/Marqo/marqo-fashionSigLIP)!"
|
| 118 |
|
| 119 |
-
examples = [
|
| 120 |
-
["https://example.com/dress.jpg", "Dress"],
|
| 121 |
-
["https://example.com/sweatpants.jpg", "Sweatpants"],
|
| 122 |
-
["https://example.com/t-shirt.jpg", "T-Shirt"],
|
| 123 |
-
["https://example.com/hat.jpg", "Hat"],
|
| 124 |
-
["https://example.com/blouse.jpg", "Blouse"],
|
| 125 |
-
["https://example.com/cargo.jpg", "Cargos"],
|
| 126 |
-
["https://example.com/sunglasses.jpg", "Sunglasses"],
|
| 127 |
-
["https://example.com/polo-shirt.jpg", "Polo Shirt"],
|
| 128 |
-
]
|
| 129 |
|
| 130 |
with gr.Blocks() as demo:
|
| 131 |
with gr.Row():
|
|
@@ -140,8 +130,6 @@ with gr.Blocks() as demo:
|
|
| 140 |
with gr.Row():
|
| 141 |
predict_button = gr.Button("Classify")
|
| 142 |
clear_button = gr.Button("Clear")
|
| 143 |
-
gr.Markdown("Or click on one of the images below to classify it:")
|
| 144 |
-
gr.Examples(examples=examples, inputs=input_image)
|
| 145 |
output_label = gr.Label(num_top_classes=6)
|
| 146 |
predict_button.click(predict, inputs=[input_image, input_url], outputs=[input_image, output_label])
|
| 147 |
clear_button.click(clear_fields, outputs=[input_image, input_url])
|
|
|
|
| 116 |
title = "Fashion Item Classifier with Marqo-FashionSigLIP"
|
| 117 |
description = "Upload an image or provide a URL of a fashion item to classify it using [Marqo-FashionSigLIP](https://huggingface.co/Marqo/marqo-fashionSigLIP)!"
|
| 118 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
|
| 120 |
with gr.Blocks() as demo:
|
| 121 |
with gr.Row():
|
|
|
|
| 130 |
with gr.Row():
|
| 131 |
predict_button = gr.Button("Classify")
|
| 132 |
clear_button = gr.Button("Clear")
|
|
|
|
|
|
|
| 133 |
output_label = gr.Label(num_top_classes=6)
|
| 134 |
predict_button.click(predict, inputs=[input_image, input_url], outputs=[input_image, output_label])
|
| 135 |
clear_button.click(clear_fields, outputs=[input_image, input_url])
|