LPDoctor commited on
Commit
bd15200
β€’
1 Parent(s): 462a819

debug ValueError

Browse files
Files changed (1) hide show
  1. app.py +9 -17
app.py CHANGED
@@ -265,14 +265,6 @@ with image_blocks as demo:
265
  with gr.Row():
266
  with gr.Column():
267
  imgs = gr.ImageEditor(sources='upload', type="pil", label='Human. Mask with pen or use auto-masking', interactive=True)
268
- garm_img = gr.Image(label="Garment", sources='upload', type="pil")
269
- with gr.Row(elem_id="prompt-container"):
270
- with gr.Row():
271
- prompt = gr.Textbox(placeholder="Description of garment ex) Short Sleeve Round Neck T-shirts", show_label=False, elem_id="prompt")
272
- example = gr.Examples(
273
- inputs=garm_img,
274
- examples_per_page=8,
275
- examples=garm_list_path)
276
  with gr.Row():
277
  is_checked = gr.Checkbox(label="Yes", info="Use auto-generated mask (Takes 5 seconds)",value=True,visible=False)
278
  with gr.Row():
@@ -284,15 +276,15 @@ with image_blocks as demo:
284
  # examples=human_ex_list
285
  # )
286
 
287
- # with gr.Column():
288
- # garm_img = gr.Image(label="Garment", sources='upload', type="pil")
289
- # with gr.Row(elem_id="prompt-container"):
290
- # with gr.Row():
291
- # prompt = gr.Textbox(placeholder="Description of garment ex) Short Sleeve Round Neck T-shirts", show_label=False, elem_id="prompt")
292
- # example = gr.Examples(
293
- # inputs=garm_img,
294
- # examples_per_page=8,
295
- # examples=garm_list_path)
296
  # with gr.Column():
297
  # # image_out = gr.Image(label="Output", elem_id="output-img", height=400)
298
  # masked_img = gr.Image(label="Masked image output", elem_id="masked-img",show_share_button=False)
 
265
  with gr.Row():
266
  with gr.Column():
267
  imgs = gr.ImageEditor(sources='upload', type="pil", label='Human. Mask with pen or use auto-masking', interactive=True)
 
 
 
 
 
 
 
 
268
  with gr.Row():
269
  is_checked = gr.Checkbox(label="Yes", info="Use auto-generated mask (Takes 5 seconds)",value=True,visible=False)
270
  with gr.Row():
 
276
  # examples=human_ex_list
277
  # )
278
 
279
+ with gr.Column():
280
+ garm_img = gr.Image(label="Garment", sources='upload', type="pil")
281
+ with gr.Row(elem_id="prompt-container"):
282
+ with gr.Row():
283
+ prompt = gr.Textbox(placeholder="Description of garment ex) Short Sleeve Round Neck T-shirts", show_label=False, elem_id="prompt")
284
+ example = gr.Examples(
285
+ inputs=garm_img,
286
+ examples_per_page=8,
287
+ examples=garm_list_path)
288
  # with gr.Column():
289
  # # image_out = gr.Image(label="Output", elem_id="output-img", height=400)
290
  # masked_img = gr.Image(label="Masked image output", elem_id="masked-img",show_share_button=False)