WatchOutForMike commited on
Commit
ef9df1a
Β·
1 Parent(s): b739efd
Files changed (1) hide show
  1. app.py +21 -21
app.py CHANGED
@@ -2143,6 +2143,7 @@ loras = [
2143
 
2144
  #--------------------------------------------------Model Initialization-----------------------------------------------------------------------------------------#
2145
 
 
2146
  dtype = torch.bfloat16
2147
  device = "cuda" if torch.cuda.is_available() else "cpu"
2148
  base_model = "black-forest-labs/FLUX.1-dev"
@@ -2375,8 +2376,17 @@ def remove_custom_lora():
2375
 
2376
  run_lora.zerogpu = True
2377
 
2378
- # ─── UPDATED CSS FOR A D&D THEME ─────────────────────────────────────────────────────────────
2379
  css = '''
 
 
 
 
 
 
 
 
 
2380
  /* Button & Layout */
2381
  #gen_btn { height: 100%; }
2382
  #gen_column { align-self: stretch; }
@@ -2387,33 +2397,33 @@ css = '''
2387
  font-size: 3em;
2388
  display: inline-flex;
2389
  align-items: center;
2390
- color: #d4af37; /* Antique gold */
2391
- text-shadow: 2px 2px 4px #000000;
2392
  }
2393
  #title img { width: 100px; margin-right: 0.5em; }
2394
 
2395
  /* Gallery & LoRA List */
2396
  #gallery .grid-wrap { height: 10vh; }
2397
  #lora_list {
2398
- background: var(--block-background-fill);
2399
  padding: 0 1em 0.3em;
2400
  font-size: 90%;
2401
- color: #d4af37;
2402
- border: 1px solid #8b4513;
2403
  }
2404
  .card_internal {
2405
  display: flex;
2406
  height: 100px;
2407
  margin-top: 0.5em;
2408
- border: 2px solid #8b4513;
2409
- background: #f5f5dc; /* light parchment */
2410
  border-radius: 8px;
2411
  padding: 5px;
2412
  }
2413
  .card_internal img {
2414
  margin-right: 1em;
2415
  border-radius: 5px;
2416
- border: 1px solid #8b4513;
2417
  }
2418
 
2419
  /* Progress Bar */
@@ -2422,27 +2432,17 @@ css = '''
2422
  .progress-container {
2423
  width: 100%;
2424
  height: 30px;
2425
- background-color: #deb887; /* burlywood */
2426
  border-radius: 15px;
2427
  overflow: hidden;
2428
  margin-bottom: 20px;
2429
  }
2430
  .progress-bar {
2431
  height: 100%;
2432
- background-color: #a0522d; /* sienna */
2433
  width: calc(var(--current) / var(--total) * 100%);
2434
  transition: width 0.5s ease-in-out;
2435
  }
2436
-
2437
- /* Body / Overall Page Background */
2438
- body {
2439
- /* A parchment/wood background for that medieval feel */
2440
- background: #fdf6e3 url('https://www.transparenttextures.com/patterns/purty-wood.png') repeat;
2441
- font-family: 'Cinzel', serif;
2442
- color: #4b3621;
2443
- margin: 0;
2444
- padding: 0;
2445
- }
2446
  '''
2447
 
2448
  with gr.Blocks(theme="YTheme/Minecraft", css=css, delete_cache=(60, 60)) as app:
 
2143
 
2144
  #--------------------------------------------------Model Initialization-----------------------------------------------------------------------------------------#
2145
 
2146
+
2147
  dtype = torch.bfloat16
2148
  device = "cuda" if torch.cuda.is_available() else "cpu"
2149
  base_model = "black-forest-labs/FLUX.1-dev"
 
2376
 
2377
  run_lora.zerogpu = True
2378
 
2379
+ # ─── UPDATED CSS WITH YOUR SITE COLORS ─────────────────────────────────────────────────────────────
2380
  css = '''
2381
+ /* Force our background with !important */
2382
+ body {
2383
+ background: #f4ecd8 url('https://www.transparenttextures.com/patterns/purty-wood.png') repeat !important;
2384
+ font-family: 'Cinzel', serif;
2385
+ color: #543d29;
2386
+ margin: 0;
2387
+ padding: 0;
2388
+ }
2389
+
2390
  /* Button & Layout */
2391
  #gen_btn { height: 100%; }
2392
  #gen_column { align-self: stretch; }
 
2397
  font-size: 3em;
2398
  display: inline-flex;
2399
  align-items: center;
2400
+ color: #795548; /* medium brown */
2401
+ text-shadow: 2px 2px 4px #543d29; /* dark brown */
2402
  }
2403
  #title img { width: 100px; margin-right: 0.5em; }
2404
 
2405
  /* Gallery & LoRA List */
2406
  #gallery .grid-wrap { height: 10vh; }
2407
  #lora_list {
2408
+ background: #f0e6d2;
2409
  padding: 0 1em 0.3em;
2410
  font-size: 90%;
2411
+ color: #795548;
2412
+ border: 1px solid #543d29;
2413
  }
2414
  .card_internal {
2415
  display: flex;
2416
  height: 100px;
2417
  margin-top: 0.5em;
2418
+ border: 2px solid #543d29;
2419
+ background: #f0e6d2;
2420
  border-radius: 8px;
2421
  padding: 5px;
2422
  }
2423
  .card_internal img {
2424
  margin-right: 1em;
2425
  border-radius: 5px;
2426
+ border: 1px solid #543d29;
2427
  }
2428
 
2429
  /* Progress Bar */
 
2432
  .progress-container {
2433
  width: 100%;
2434
  height: 30px;
2435
+ background-color: #795548;
2436
  border-radius: 15px;
2437
  overflow: hidden;
2438
  margin-bottom: 20px;
2439
  }
2440
  .progress-bar {
2441
  height: 100%;
2442
+ background-color: #543d29;
2443
  width: calc(var(--current) / var(--total) * 100%);
2444
  transition: width 0.5s ease-in-out;
2445
  }
 
 
 
 
 
 
 
 
 
 
2446
  '''
2447
 
2448
  with gr.Blocks(theme="YTheme/Minecraft", css=css, delete_cache=(60, 60)) as app: