Borio047 commited on
Commit
0722ffd
·
1 Parent(s): 732b7ca

Add working app without local binary images

Browse files
Files changed (1) hide show
  1. app.py +9 -16
app.py CHANGED
@@ -117,24 +117,17 @@ 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
- ["images/dress.jpg", "Dress"],
121
- ["images/sweatpants.jpg", "Sweatpants"],
122
- ["images/t-shirt.jpg", "T-Shirt"],
123
- ["images/hat.jpg", "Hat"],
124
- ["images/blouse.jpg", "Blouse"],
125
- ["images/cargo.jpg", "Cargos"],
126
- ["images/sunglasses.jpg", "Sunglasses"],
127
- ["images/polo-shirt.jpg", "Polo Shirt"],
128
  ]
129
 
130
- with gr.Blocks(css="""
131
- .remove-btn {
132
- font-size: 24px !important; /* Increase the font size of the cross button */
133
- line-height: 24px !important;
134
- width: 30px !important; /* Increase the width */
135
- height: 30px !important; /* Increase the height */
136
- }
137
- """) as demo:
138
  with gr.Row():
139
  with gr.Column(scale=1):
140
  gr.Markdown(f"# {title}")
 
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():
132
  with gr.Column(scale=1):
133
  gr.Markdown(f"# {title}")