add style attribute
Browse files
app.py
CHANGED
|
@@ -262,7 +262,7 @@ garm_list_path = [os.path.join(example_path,"cloth",garm) for garm in garm_list]
|
|
| 262 |
##default human
|
| 263 |
|
| 264 |
|
| 265 |
-
image_blocks = gr.Blocks().queue()
|
| 266 |
with image_blocks as demo:
|
| 267 |
gr.Markdown("## IDM-VTON πππ")
|
| 268 |
gr.Markdown("Virtual Try-on with your image and garment image. Check out the [source codes](https://github.com/yisol/IDM-VTON) and the [model](https://huggingface.co/yisol/IDM-VTON)")
|
|
|
|
| 262 |
##default human
|
| 263 |
|
| 264 |
|
| 265 |
+
image_blocks = gr.Blocks(css="style.css").queue()
|
| 266 |
with image_blocks as demo:
|
| 267 |
gr.Markdown("## IDM-VTON πππ")
|
| 268 |
gr.Markdown("Virtual Try-on with your image and garment image. Check out the [source codes](https://github.com/yisol/IDM-VTON) and the [model](https://huggingface.co/yisol/IDM-VTON)")
|
style.css
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
This CSS file is modified from:
|
| 3 |
+
https://huggingface.co/spaces/DeepFloyd/IF/blob/main/style.css
|
| 4 |
+
*/
|
| 5 |
+
|
| 6 |
+
h1 {
|
| 7 |
+
text-align: center;
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
.gradio-container {
|
| 11 |
+
font-family: 'IBM Plex Sans', sans-serif;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
input[type='range'] {
|
| 16 |
+
accent-color: black;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
.dark input[type='range'] {
|
| 20 |
+
accent-color: #dfdfdf;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
.container {
|
| 24 |
+
max-width: 730px;
|
| 25 |
+
margin: auto;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
#prompt-container {
|
| 29 |
+
gap: 0;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
#prompt-text-input,
|
| 33 |
+
#negative-prompt-text-input {
|
| 34 |
+
padding: .45rem 0.625rem
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
/* #component-16 {
|
| 38 |
+
border-top-width: 1px !important;
|
| 39 |
+
margin-top: 1em
|
| 40 |
+
} */
|
| 41 |
+
|
| 42 |
+
.image_duplication {
|
| 43 |
+
position: absolute;
|
| 44 |
+
width: 100px;
|
| 45 |
+
left: 50px
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
#component-0 {
|
| 49 |
+
max-width: 730px;
|
| 50 |
+
margin: auto;
|
| 51 |
+
padding-top: 1.5rem;
|
| 52 |
+
}
|
| 53 |
+
#share-btn-wrapper{background-color: transparent;border: 0;margin-top: -10px}
|
| 54 |
+
#share-btn-wrapper .styler{background-color: transparent}
|
| 55 |
+
#share-btn-container{padding-left: 0.5rem !important; padding-right: 0.5rem !important; background-color: #000000; justify-content: center; align-items: center; border-radius: 9999px !important; max-width: 13rem; margin-left: auto;}
|
| 56 |
+
div#share-btn-container > div {flex-direction: row;background: black;align-items: center}
|
| 57 |
+
#share-btn-container:hover {background-color: #060606}
|
| 58 |
+
#share-btn {all: initial; color: #ffffff;font-weight: 600; cursor:pointer; font-family: 'IBM Plex Sans', sans-serif; margin-left: 0.5rem !important; padding-top: 0.5rem !important; padding-bottom: 0.5rem !important;right:0;font-size: 15px;}
|
| 59 |
+
#share-btn * {all: unset}
|
| 60 |
+
#share-btn-container div:nth-child(-n+2){width: auto !important;min-height: 0px !important;}
|
| 61 |
+
#share-btn-container .wrap {display: none !important}
|
| 62 |
+
#share-btn-container.hidden {display: none!important}
|