Spaces:
Nymbo
/
Running on Zero

yisol commited on
Commit
c123434
β€’
1 Parent(s): b7d9c38

fix manual masking and add example image

Browse files
app.py CHANGED
@@ -239,12 +239,12 @@ image_blocks = gr.Blocks().queue()
239
  with image_blocks as demo:
240
  with gr.Row():
241
  with gr.Column():
242
- imgs = gr.ImageMask(sources='upload', type="pil", label='Human. Mask with pen or use auto-masking', interactive=True)
243
  with gr.Row():
244
- is_checked = gr.Checkbox(label="Yes", info="Use auto-generated mask",value=True)
245
  example = gr.Examples(
246
  inputs=imgs,
247
- examples_per_page=8,
248
  examples=human_ex_list
249
  )
250
 
@@ -255,7 +255,7 @@ with image_blocks as demo:
255
  prompt = gr.Textbox(placeholder="Description of garment ex) Short Sleeve Round Neck T-shirts", show_label=False, elem_id="prompt")
256
  example = gr.Examples(
257
  inputs=garm_img,
258
- examples_per_page=8,
259
  examples=garm_list_path)
260
  with gr.Column():
261
  # image_out = gr.Image(label="Output", elem_id="output-img", height=400)
 
239
  with image_blocks as demo:
240
  with gr.Row():
241
  with gr.Column():
242
+ imgs = gr.ImageEditor(sources='upload', type="pil", label='Human. Mask with pen or use auto-masking', interactive=True)
243
  with gr.Row():
244
+ is_checked = gr.Checkbox(label="Yes", info="Use auto-generated mask (Takes 5 more seconds)",value=True)
245
  example = gr.Examples(
246
  inputs=imgs,
247
+ examples_per_page=10,
248
  examples=human_ex_list
249
  )
250
 
 
255
  prompt = gr.Textbox(placeholder="Description of garment ex) Short Sleeve Round Neck T-shirts", show_label=False, elem_id="prompt")
256
  example = gr.Examples(
257
  inputs=garm_img,
258
+ examples_per_page=10,
259
  examples=garm_list_path)
260
  with gr.Column():
261
  # image_out = gr.Image(label="Output", elem_id="output-img", height=400)
example/human/Jensen.jpeg ADDED
example/human/sam1 (1).jpg ADDED
example/human/taylor-.jpg ADDED
example/human/will1 (1).jpg ADDED