ruslanmv commited on
Commit
5319561
·
verified ·
1 Parent(s): 4eb9e6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +62 -14
app.py CHANGED
@@ -436,20 +436,68 @@ def remove_custom_lora():
436
  run_lora.zerogpu = True
437
 
438
  css = '''
439
- #gen_btn { height: 100%; }
440
- #gen_column { align-self: stretch; }
441
- #title { text-align: center; }
442
- #title h1 { font-size: 3em; display:inline-flex; align-items:center; }
443
- #title img { width: 100px; margin-right: 0.5em; }
444
- #gallery .grid-wrap { height: 10vh; }
445
- #lora_list { background: var(--block-background-fill); padding: 0 1em .3em; font-size: 90%; }
446
- .card_internal { display: flex; height: 100px; margin-top: .5em; }
447
- .card_internal img { margin-right: 1em; }
448
- .styler { --form-gap-width: 0px !important; }
449
- #progress { height:30px; }
450
- #progress .generating { display:none; }
451
- .progress-container { width: 100%; height: 30px; background-color: #f0f0f0; border-radius: 15px; overflow: hidden; margin-bottom: 20px; }
452
- .progress-bar { height: 100%; background-color: #4f46e5; width: calc(var(--current) / var(--total) * 100%); transition: width 0.5s ease-in-out; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: