nami0342 commited on
Commit
3f5c665
Β·
1 Parent(s): 4b8938e

Re positioning gradio items

Browse files
Files changed (1) hide show
  1. app.py +22 -22
app.py CHANGED
@@ -265,32 +265,32 @@ with image_blocks as demo:
265
  with gr.Row():
266
  with gr.Column():
267
  imgs = gr.ImageEditor(sources='upload', type="pil", label='λŒ€μƒ 이미지', interactive=True)
268
- with gr.Row():
269
- is_checked = gr.Checkbox(label="Yes", info="Use auto-generated mask (Takes 5 seconds)",value=True)
270
  # with gr.Row():
271
  # is_checked_crop = gr.Checkbox(label="Yes", info="Use auto-crop & resizing",value=False)
272
 
273
- example = gr.Examples(
274
- inputs=imgs,
275
- examples_per_page=10,
276
- examples=human_ex_list
277
- )
278
 
279
- with gr.Column():
280
- garm_img = gr.Image(label="μ˜μƒ 이미지", 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)
291
- with gr.Column():
292
- # image_out = gr.Image(label="Output", elem_id="output-img", height=400)
293
- image_out = gr.Image(label="Output", elem_id="output-img",show_share_button=False)
294
 
295
  with gr.Column():
296
  try_button = gr.Button(value="Try-on")
 
265
  with gr.Row():
266
  with gr.Column():
267
  imgs = gr.ImageEditor(sources='upload', type="pil", label='λŒ€μƒ 이미지', interactive=True)
268
+ with gr.Row():
269
+ is_checked = gr.Checkbox(label="Yes", info="Use auto-generated mask (Takes 5 seconds)",value=True)
270
  # with gr.Row():
271
  # is_checked_crop = gr.Checkbox(label="Yes", info="Use auto-crop & resizing",value=False)
272
 
273
+ example = gr.Examples(
274
+ inputs=imgs,
275
+ examples_per_page=10,
276
+ examples=human_ex_list
277
+ )
278
 
279
+ with gr.Column():
280
+ garm_img = gr.Image(label="μ˜μƒ 이미지", 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)
291
+ with gr.Column():
292
+ # image_out = gr.Image(label="Output", elem_id="output-img", height=400)
293
+ image_out = gr.Image(label="Output", elem_id="output-img",show_share_button=False)
294
 
295
  with gr.Column():
296
  try_button = gr.Button(value="Try-on")