dryade36513 commited on
Commit
f86a572
·
verified ·
1 Parent(s): e5083f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -264,11 +264,11 @@ with image_blocks as demo:
264
  gr.Markdown("使用您的影像和服裝影像進行虛擬試穿")
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="自動生成遮罩 (僅需五秒)",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,
@@ -283,7 +283,7 @@ with image_blocks as demo:
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)
 
264
  gr.Markdown("使用您的影像和服裝影像進行虛擬試穿")
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="自動生成遮罩 (僅需五秒)",value=True)
270
  with gr.Row():
271
+ is_checked_crop = gr.Checkbox(label="Yes", info="自動裁切",value=False)
272
 
273
  example = gr.Examples(
274
  inputs=imgs,
 
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=10,
287
  examples=garm_list_path)
288
  with gr.Column():
289
  # image_out = gr.Image(label="Output", elem_id="output-img", height=400)