NikhilJoson commited on
Commit
ceb08a1
·
verified ·
1 Parent(s): a7134a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -239,7 +239,7 @@ with image_blocks as demo:
239
  gr.HTML("<center><p>Upload an image of a person and images of the clothes✨</p></center>")
240
 
241
  with gr.Row():
242
- with gr.Column():
243
  inp_img = gr.ImageEditor(sources='upload', type="pil", label='Human. Mask with pen or use auto-masking', interactive=True)
244
  with gr.Row():
245
  is_checked = gr.Checkbox(label="Yes", info="Use auto-generated mask (Takes 5 seconds)",value=True)
@@ -247,25 +247,25 @@ with image_blocks as demo:
247
  is_checked_crop = gr.Checkbox(label="Yes", info="Use auto-crop & resizing",value=False)
248
  example = gr.Examples(inputs=inp_img, examples_per_page=10, examples=human_ex_list)
249
 
250
- with gr.Column():
251
  with gr.Row():
252
  topwear_image = gr.Image(label="Topwear", sources='upload', type="pil")
253
  with gr.Row(elem_id="topwear-prompt-container"):
254
  with gr.Row():
255
  topwear_desc = gr.Textbox(placeholder="Description of garment ex) Short Sleeve Round Neck T-shirts", show_label=False, elem_id="prompt")
256
- example = gr.Examples(inputs=topwear_image, examples_per_page=8,examples=topwear_list_path)
257
  with gr.Row():
258
  bottomwear_image = gr.Image(label="Bottomwear", sources='upload', type="pil")
259
  with gr.Row(elem_id="bottomwear-prompt-container"):
260
  with gr.Row():
261
  bottomwear_desc = gr.Textbox(placeholder="Description of garment ex) Short Sleeve Round Neck T-shirts", show_label=False, elem_id="prompt")
262
- example = gr.Examples(inputs=bottomwear_image, examples_per_page=8, examples=bottomwear_list_path)
263
  with gr.Row():
264
  dress_image = gr.Image(label="Dress", sources='upload', type="pil")
265
  with gr.Row(elem_id="dress-prompt-container"):
266
  with gr.Row():
267
  dress_desc = gr.Textbox(placeholder="Description of garment ex) Short Sleeve Round Neck T-shirts", show_label=False, elem_id="prompt")
268
- example = gr.Examples(inputs=dress_image, examples_per_page=8, examples=dress_list_path)
269
 
270
  with gr.Row():
271
  with gr.Column():
 
239
  gr.HTML("<center><p>Upload an image of a person and images of the clothes✨</p></center>")
240
 
241
  with gr.Row():
242
+ with gr.Column(scale=1):
243
  inp_img = gr.ImageEditor(sources='upload', type="pil", label='Human. Mask with pen or use auto-masking', interactive=True)
244
  with gr.Row():
245
  is_checked = gr.Checkbox(label="Yes", info="Use auto-generated mask (Takes 5 seconds)",value=True)
 
247
  is_checked_crop = gr.Checkbox(label="Yes", info="Use auto-crop & resizing",value=False)
248
  example = gr.Examples(inputs=inp_img, examples_per_page=10, examples=human_ex_list)
249
 
250
+ with gr.Column(scale=1):
251
  with gr.Row():
252
  topwear_image = gr.Image(label="Topwear", sources='upload', type="pil")
253
  with gr.Row(elem_id="topwear-prompt-container"):
254
  with gr.Row():
255
  topwear_desc = gr.Textbox(placeholder="Description of garment ex) Short Sleeve Round Neck T-shirts", show_label=False, elem_id="prompt")
256
+ example = gr.Examples(inputs=topwear_image, examples_per_page=4,examples=topwear_list_path)
257
  with gr.Row():
258
  bottomwear_image = gr.Image(label="Bottomwear", sources='upload', type="pil")
259
  with gr.Row(elem_id="bottomwear-prompt-container"):
260
  with gr.Row():
261
  bottomwear_desc = gr.Textbox(placeholder="Description of garment ex) Short Sleeve Round Neck T-shirts", show_label=False, elem_id="prompt")
262
+ example = gr.Examples(inputs=bottomwear_image, examples_per_page=4, examples=bottomwear_list_path)
263
  with gr.Row():
264
  dress_image = gr.Image(label="Dress", sources='upload', type="pil")
265
  with gr.Row(elem_id="dress-prompt-container"):
266
  with gr.Row():
267
  dress_desc = gr.Textbox(placeholder="Description of garment ex) Short Sleeve Round Neck T-shirts", show_label=False, elem_id="prompt")
268
+ example = gr.Examples(inputs=dress_image, examples_per_page=4, examples=dress_list_path)
269
 
270
  with gr.Row():
271
  with gr.Column():