with Download Button
Browse files
app.py
CHANGED
|
@@ -405,8 +405,8 @@ for ex_human in human_list_path:
|
|
| 405 |
##default human
|
| 406 |
|
| 407 |
css = '''
|
| 408 |
-
/*.gradio-container {width: 85% !important;
|
| 409 |
-
.gradio-container {width: 100% !important;
|
| 410 |
background: linear-gradient(135deg, #CCFED9, #95BAFF);
|
| 411 |
}
|
| 412 |
#huggingface-space-header {
|
|
@@ -420,6 +420,7 @@ background: linear-gradient(135deg, #CCFED9, #95BAFF);
|
|
| 420 |
color: white !important;
|
| 421 |
}
|
| 422 |
|
|
|
|
| 423 |
html, body {
|
| 424 |
height: 100%;
|
| 425 |
margin: 0;
|
|
@@ -430,7 +431,7 @@ html, body {
|
|
| 430 |
|
| 431 |
background: transparent !important;
|
| 432 |
}
|
| 433 |
-
|
| 434 |
|
| 435 |
html body h1#app-title {
|
| 436 |
text-align: center;
|
|
@@ -485,6 +486,10 @@ a[href*="api"], .api-button, #api-button {
|
|
| 485 |
color: white !important;
|
| 486 |
width: 100%;
|
| 487 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 488 |
input[type="radio"]:checked + span {
|
| 489 |
border-color: #D46BCA !important;
|
| 490 |
}
|
|
@@ -522,16 +527,17 @@ with image_blocks as demo:
|
|
| 522 |
|
| 523 |
with gr.Column():
|
| 524 |
# image_out = gr.Image(label="Output", elem_id="output-img", height=400)
|
| 525 |
-
masked_img = gr.Image(label="Masked image output", elem_id="masked-img",show_share_button=False)
|
| 526 |
|
| 527 |
-
with gr.Column():
|
| 528 |
-
|
| 529 |
-
|
| 530 |
-
|
| 531 |
|
| 532 |
|
| 533 |
with gr.Column():
|
| 534 |
try_button = gr.Button(value="Try-on", elem_id="generate_btn")
|
|
|
|
| 535 |
with gr.Accordion(label="Advanced Settings", open=False):
|
| 536 |
with gr.Row():
|
| 537 |
denoise_steps = gr.Number(label="Denoising Steps", minimum=20, maximum=40, value=30, step=1)
|
|
|
|
| 405 |
##default human
|
| 406 |
|
| 407 |
css = '''
|
| 408 |
+
/*.gradio-container {width: 85% !important; */
|
| 409 |
+
.gradio-container {width: 100% !important;
|
| 410 |
background: linear-gradient(135deg, #CCFED9, #95BAFF);
|
| 411 |
}
|
| 412 |
#huggingface-space-header {
|
|
|
|
| 420 |
color: white !important;
|
| 421 |
}
|
| 422 |
|
| 423 |
+
*/
|
| 424 |
html, body {
|
| 425 |
height: 100%;
|
| 426 |
margin: 0;
|
|
|
|
| 431 |
|
| 432 |
background: transparent !important;
|
| 433 |
}
|
| 434 |
+
*/
|
| 435 |
|
| 436 |
html body h1#app-title {
|
| 437 |
text-align: center;
|
|
|
|
| 486 |
color: white !important;
|
| 487 |
width: 100%;
|
| 488 |
}
|
| 489 |
+
#download_btn {
|
| 490 |
+
background: #553566 !important;
|
| 491 |
+
color: white !important;
|
| 492 |
+
}
|
| 493 |
input[type="radio"]:checked + span {
|
| 494 |
border-color: #D46BCA !important;
|
| 495 |
}
|
|
|
|
| 527 |
|
| 528 |
with gr.Column():
|
| 529 |
# image_out = gr.Image(label="Output", elem_id="output-img", height=400)
|
| 530 |
+
masked_img = gr.Image(label="Masked image output", elem_id="masked-img",show_share_button=False, show_download_button=False)
|
| 531 |
|
| 532 |
+
# with gr.Column():
|
| 533 |
+
# # image_out = gr.Image(label="Output", elem_id="output-img", height=400)
|
| 534 |
+
# image_out = gr.Image(label="Output", elem_id="output-img",show_share_button=False, show_download_button=False)
|
| 535 |
+
# download_btn = gr.DownloadButton(label="Download Generated Image", elem_id="download_btn")
|
| 536 |
|
| 537 |
|
| 538 |
with gr.Column():
|
| 539 |
try_button = gr.Button(value="Try-on", elem_id="generate_btn")
|
| 540 |
+
download_btn = gr.DownloadButton(label="Download Generated Image", elem_id="download_btn")
|
| 541 |
with gr.Accordion(label="Advanced Settings", open=False):
|
| 542 |
with gr.Row():
|
| 543 |
denoise_steps = gr.Number(label="Denoising Steps", minimum=20, maximum=40, value=30, step=1)
|