Spaces:
Runtime error
Runtime error
make the component invisible
Browse files
app.py
CHANGED
|
@@ -266,9 +266,9 @@ with image_blocks as demo:
|
|
| 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)
|
| 270 |
with gr.Row():
|
| 271 |
-
is_checked_crop = gr.Checkbox(label="Yes", info="Use auto-crop & resizing",value=
|
| 272 |
|
| 273 |
example = gr.Examples(
|
| 274 |
inputs=imgs,
|
|
@@ -285,9 +285,9 @@ with image_blocks as demo:
|
|
| 285 |
inputs=garm_img,
|
| 286 |
examples_per_page=8,
|
| 287 |
examples=garm_list_path)
|
| 288 |
-
with gr.Column():
|
| 289 |
-
|
| 290 |
-
|
| 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)
|
|
@@ -304,10 +304,9 @@ with image_blocks as demo:
|
|
| 304 |
|
| 305 |
|
| 306 |
|
| 307 |
-
try_button.click(fn=start_tryon, inputs=[imgs, garm_img, prompt, is_checked,is_checked_crop, denoise_steps, seed], outputs=[image_out
|
| 308 |
|
| 309 |
|
| 310 |
|
| 311 |
|
| 312 |
image_blocks.launch()
|
| 313 |
-
|
|
|
|
| 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=True)
|
| 270 |
with gr.Row():
|
| 271 |
+
is_checked_crop = gr.Checkbox(label="Yes", info="Use auto-crop & resizing",value=True,visible=True)
|
| 272 |
|
| 273 |
example = gr.Examples(
|
| 274 |
inputs=imgs,
|
|
|
|
| 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)
|
|
|
|
| 304 |
|
| 305 |
|
| 306 |
|
| 307 |
+
try_button.click(fn=start_tryon, inputs=[imgs, garm_img, prompt, is_checked,is_checked_crop, denoise_steps, seed], outputs=[image_out], api_name='tryon')
|
| 308 |
|
| 309 |
|
| 310 |
|
| 311 |
|
| 312 |
image_blocks.launch()
|
|
|