Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -436,20 +436,68 @@ def remove_custom_lora():
|
|
| 436 |
run_lora.zerogpu = True
|
| 437 |
|
| 438 |
css = '''
|
| 439 |
-
|
| 440 |
-
#
|
| 441 |
-
|
| 442 |
-
|
| 443 |
-
|
| 444 |
-
#
|
| 445 |
-
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
|
| 452 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 453 |
'''
|
| 454 |
|
| 455 |
with gr.Blocks(theme=gr.themes.Base(), css=css, delete_cache=(60, 60)) as app:
|
|
|
|
| 436 |
run_lora.zerogpu = True
|
| 437 |
|
| 438 |
css = '''
|
| 439 |
+
/* Title Styling */
|
| 440 |
+
#title {
|
| 441 |
+
text-align: center;
|
| 442 |
+
margin-bottom: 20px;
|
| 443 |
+
}
|
| 444 |
+
#title h1 {
|
| 445 |
+
font-size: 2.5rem;
|
| 446 |
+
margin: 0;
|
| 447 |
+
color: #333;
|
| 448 |
+
}
|
| 449 |
+
|
| 450 |
+
/* Button and Column Styling */
|
| 451 |
+
#gen_btn {
|
| 452 |
+
width: 100%;
|
| 453 |
+
padding: 12px;
|
| 454 |
+
font-weight: bold;
|
| 455 |
+
border-radius: 5px;
|
| 456 |
+
}
|
| 457 |
+
#gen_column {
|
| 458 |
+
display: flex;
|
| 459 |
+
align-items: center;
|
| 460 |
+
justify-content: center;
|
| 461 |
+
}
|
| 462 |
+
|
| 463 |
+
/* Gallery and List Styling */
|
| 464 |
+
#gallery .grid-wrap {
|
| 465 |
+
margin-top: 15px;
|
| 466 |
+
}
|
| 467 |
+
#lora_list {
|
| 468 |
+
background-color: #f5f5f5;
|
| 469 |
+
padding: 10px;
|
| 470 |
+
border-radius: 4px;
|
| 471 |
+
font-size: 0.9rem;
|
| 472 |
+
}
|
| 473 |
+
.card_internal {
|
| 474 |
+
display: flex;
|
| 475 |
+
align-items: center;
|
| 476 |
+
height: 100px;
|
| 477 |
+
margin-top: 10px;
|
| 478 |
+
}
|
| 479 |
+
.card_internal img {
|
| 480 |
+
margin-right: 10px;
|
| 481 |
+
}
|
| 482 |
+
.styler {
|
| 483 |
+
--form-gap-width: 0px !important;
|
| 484 |
+
}
|
| 485 |
+
|
| 486 |
+
/* Progress Bar Styling */
|
| 487 |
+
.progress-container {
|
| 488 |
+
width: 100%;
|
| 489 |
+
height: 20px;
|
| 490 |
+
background-color: #e0e0e0;
|
| 491 |
+
border-radius: 10px;
|
| 492 |
+
overflow: hidden;
|
| 493 |
+
margin-bottom: 20px;
|
| 494 |
+
}
|
| 495 |
+
.progress-bar {
|
| 496 |
+
height: 100%;
|
| 497 |
+
background-color: #4f46e5;
|
| 498 |
+
transition: width 0.3s ease-in-out;
|
| 499 |
+
width: calc(var(--current) / var(--total) * 100%);
|
| 500 |
+
}
|
| 501 |
'''
|
| 502 |
|
| 503 |
with gr.Blocks(theme=gr.themes.Base(), css=css, delete_cache=(60, 60)) as app:
|