Spaces:
Sleeping
Sleeping
Use high quality PNG showcase images
Browse files
app.py
CHANGED
|
@@ -273,33 +273,43 @@ body, .gradio-container {
|
|
| 273 |
margin-bottom: 18px;
|
| 274 |
}
|
| 275 |
.prompt-shell {
|
| 276 |
-
max-width:
|
| 277 |
-
width: min(
|
| 278 |
margin: 0 auto;
|
| 279 |
-
min-height:
|
| 280 |
-
border:
|
| 281 |
-
border-radius:
|
| 282 |
background: #fff !important;
|
| 283 |
-
box-shadow:
|
| 284 |
-
|
|
|
|
| 285 |
}
|
| 286 |
.prompt-shell:focus-within {
|
| 287 |
border-color: #3677e8;
|
| 288 |
-
box-shadow:
|
| 289 |
}
|
| 290 |
.prompt-shell .block,
|
| 291 |
.prompt-shell .wrap,
|
| 292 |
-
.prompt-shell .form
|
|
|
|
|
|
|
| 293 |
border: 0 !important;
|
| 294 |
background: transparent !important;
|
| 295 |
box-shadow: none !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 296 |
}
|
| 297 |
.prompt-shell img,
|
| 298 |
.prompt-shell video {
|
| 299 |
-
width:
|
| 300 |
-
height:
|
| 301 |
object-fit: cover !important;
|
| 302 |
-
border-radius:
|
| 303 |
border: 2px solid #d9e7ff !important;
|
| 304 |
}
|
| 305 |
.prompt-shell .file-preview,
|
|
@@ -316,16 +326,16 @@ body, .gradio-container {
|
|
| 316 |
}
|
| 317 |
.prompt-shell textarea,
|
| 318 |
.prompt-shell [contenteditable="true"] {
|
| 319 |
-
min-height:
|
| 320 |
border: 0 !important;
|
| 321 |
background: transparent !important;
|
| 322 |
box-shadow: none !important;
|
| 323 |
resize: none !important;
|
| 324 |
color: #111 !important;
|
| 325 |
caret-color: #111 !important;
|
| 326 |
-
font-size:
|
| 327 |
line-height: 1.45 !important;
|
| 328 |
-
padding:
|
| 329 |
}
|
| 330 |
.prompt-shell textarea::placeholder {
|
| 331 |
color: #8b8b8b !important;
|
|
@@ -426,7 +436,7 @@ body, .gradio-container {
|
|
| 426 |
.tryon-hero { padding-top: 104px; }
|
| 427 |
.tryon-title { font-size: 24px; }
|
| 428 |
.prompt-shell { width: min(100%, calc(100vw - 28px)); }
|
| 429 |
-
.prompt-shell textarea, .prompt-shell [contenteditable="true"] { font-size: 18px !important; min-height:
|
| 430 |
.showcase-track img { width: 430px; min-width: 430px; }
|
| 431 |
}
|
| 432 |
"""
|
|
@@ -449,8 +459,8 @@ with gr.Blocks(title="JoyAI Virtual Try-On", css=CSS) as demo:
|
|
| 449 |
placeholder="描述你想要的试穿效果",
|
| 450 |
file_count="multiple",
|
| 451 |
file_types=["image"],
|
| 452 |
-
lines=
|
| 453 |
-
max_lines=
|
| 454 |
show_label=False,
|
| 455 |
interactive=True,
|
| 456 |
submit_btn="↑",
|
|
|
|
| 273 |
margin-bottom: 18px;
|
| 274 |
}
|
| 275 |
.prompt-shell {
|
| 276 |
+
max-width: 1520px;
|
| 277 |
+
width: min(1520px, calc(100vw - 120px));
|
| 278 |
margin: 0 auto;
|
| 279 |
+
min-height: 112px;
|
| 280 |
+
border: 2.5px solid #9ec2ff;
|
| 281 |
+
border-radius: 999px !important;
|
| 282 |
background: #fff !important;
|
| 283 |
+
box-shadow: none !important;
|
| 284 |
+
filter: none !important;
|
| 285 |
+
overflow: hidden;
|
| 286 |
}
|
| 287 |
.prompt-shell:focus-within {
|
| 288 |
border-color: #3677e8;
|
| 289 |
+
box-shadow: none !important;
|
| 290 |
}
|
| 291 |
.prompt-shell .block,
|
| 292 |
.prompt-shell .wrap,
|
| 293 |
+
.prompt-shell .form,
|
| 294 |
+
.prompt-shell label,
|
| 295 |
+
.prompt-shell fieldset {
|
| 296 |
border: 0 !important;
|
| 297 |
background: transparent !important;
|
| 298 |
box-shadow: none !important;
|
| 299 |
+
filter: none !important;
|
| 300 |
+
}
|
| 301 |
+
.prompt-shell,
|
| 302 |
+
.prompt-shell > *,
|
| 303 |
+
.prompt-shell .block,
|
| 304 |
+
.prompt-shell .wrap {
|
| 305 |
+
border-radius: 999px !important;
|
| 306 |
}
|
| 307 |
.prompt-shell img,
|
| 308 |
.prompt-shell video {
|
| 309 |
+
width: 56px !important;
|
| 310 |
+
height: 56px !important;
|
| 311 |
object-fit: cover !important;
|
| 312 |
+
border-radius: 18px !important;
|
| 313 |
border: 2px solid #d9e7ff !important;
|
| 314 |
}
|
| 315 |
.prompt-shell .file-preview,
|
|
|
|
| 326 |
}
|
| 327 |
.prompt-shell textarea,
|
| 328 |
.prompt-shell [contenteditable="true"] {
|
| 329 |
+
min-height: 86px !important;
|
| 330 |
border: 0 !important;
|
| 331 |
background: transparent !important;
|
| 332 |
box-shadow: none !important;
|
| 333 |
resize: none !important;
|
| 334 |
color: #111 !important;
|
| 335 |
caret-color: #111 !important;
|
| 336 |
+
font-size: 20px !important;
|
| 337 |
line-height: 1.45 !important;
|
| 338 |
+
padding: 24px 92px 34px 74px !important;
|
| 339 |
}
|
| 340 |
.prompt-shell textarea::placeholder {
|
| 341 |
color: #8b8b8b !important;
|
|
|
|
| 436 |
.tryon-hero { padding-top: 104px; }
|
| 437 |
.tryon-title { font-size: 24px; }
|
| 438 |
.prompt-shell { width: min(100%, calc(100vw - 28px)); }
|
| 439 |
+
.prompt-shell textarea, .prompt-shell [contenteditable="true"] { font-size: 18px !important; min-height: 86px !important; }
|
| 440 |
.showcase-track img { width: 430px; min-width: 430px; }
|
| 441 |
}
|
| 442 |
"""
|
|
|
|
| 459 |
placeholder="描述你想要的试穿效果",
|
| 460 |
file_count="multiple",
|
| 461 |
file_types=["image"],
|
| 462 |
+
lines=2,
|
| 463 |
+
max_lines=2,
|
| 464 |
show_label=False,
|
| 465 |
interactive=True,
|
| 466 |
submit_btn="↑",
|