hiding masked_img
Browse files
app.py
CHANGED
|
@@ -411,6 +411,10 @@ background: linear-gradient(135deg, #CCFED9, #95BAFF);
|
|
| 411 |
#huggingface-space-header {
|
| 412 |
display: none !important;
|
| 413 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 414 |
#generate_btn {
|
| 415 |
background: #553566 !important;
|
| 416 |
color: white !important;
|
|
@@ -493,9 +497,9 @@ with image_blocks as demo:
|
|
| 493 |
with gr.Row():
|
| 494 |
prompt = gr.Textbox(placeholder="Description of garment ex) Short Sleeve Round Neck T-shirts", show_label=False, elem_id="prompt")
|
| 495 |
|
| 496 |
-
|
| 497 |
-
|
| 498 |
-
|
| 499 |
|
| 500 |
with gr.Column():
|
| 501 |
# image_out = gr.Image(label="Output", elem_id="output-img", height=400)
|
|
@@ -505,7 +509,7 @@ with image_blocks as demo:
|
|
| 505 |
|
| 506 |
|
| 507 |
with gr.Column():
|
| 508 |
-
try_button = gr.Button(value="Try-on")
|
| 509 |
with gr.Accordion(label="Advanced Settings", open=False):
|
| 510 |
with gr.Row():
|
| 511 |
denoise_steps = gr.Number(label="Denoising Steps", minimum=20, maximum=40, value=30, step=1)
|
|
@@ -513,7 +517,7 @@ with image_blocks as demo:
|
|
| 513 |
|
| 514 |
|
| 515 |
|
| 516 |
-
try_button.click(fn=start_tryon, inputs=[imgs, garm_img, prompt, is_checked,is_checked_crop, denoise_steps, seed], outputs=[image_out,
|
| 517 |
|
| 518 |
image_blocks.launch(auth=(HF_TEST_USER_NAME, HF_PASS), show_error=True)
|
| 519 |
# image_blocks.launch(show_error=True)
|
|
|
|
| 411 |
#huggingface-space-header {
|
| 412 |
display: none !important;
|
| 413 |
}
|
| 414 |
+
#masked-img {
|
| 415 |
+
background: #553566 !important;
|
| 416 |
+
color: white !important;
|
| 417 |
+
}
|
| 418 |
#generate_btn {
|
| 419 |
background: #553566 !important;
|
| 420 |
color: white !important;
|
|
|
|
| 497 |
with gr.Row():
|
| 498 |
prompt = gr.Textbox(placeholder="Description of garment ex) Short Sleeve Round Neck T-shirts", show_label=False, elem_id="prompt")
|
| 499 |
|
| 500 |
+
with gr.Column():
|
| 501 |
+
# image_out = gr.Image(label="Output", elem_id="output-img", height=400)
|
| 502 |
+
masked_img = gr.Image(label="Masked image output", elem_id="masked-img",show_share_button=False)
|
| 503 |
|
| 504 |
with gr.Column():
|
| 505 |
# image_out = gr.Image(label="Output", elem_id="output-img", height=400)
|
|
|
|
| 509 |
|
| 510 |
|
| 511 |
with gr.Column():
|
| 512 |
+
try_button = gr.Button(value="Try-on", elem_id="generate_btn")
|
| 513 |
with gr.Accordion(label="Advanced Settings", open=False):
|
| 514 |
with gr.Row():
|
| 515 |
denoise_steps = gr.Number(label="Denoising Steps", minimum=20, maximum=40, value=30, step=1)
|
|
|
|
| 517 |
|
| 518 |
|
| 519 |
|
| 520 |
+
try_button.click(fn=start_tryon, inputs=[imgs, garm_img, prompt, is_checked,is_checked_crop, denoise_steps, seed], outputs=[image_out,masked-img], api_name='tryon')
|
| 521 |
|
| 522 |
image_blocks.launch(auth=(HF_TEST_USER_NAME, HF_PASS), show_error=True)
|
| 523 |
# image_blocks.launch(show_error=True)
|