KevinNg99 commited on
Commit
f129909
·
1 Parent(s): 84d6cdc
Files changed (1) hide show
  1. app.py +13 -3
app.py CHANGED
@@ -349,7 +349,7 @@ def create_interface(auto_load: bool = True, use_distilled: bool = False, device
349
  """Create the Gradio interface."""
350
  app = HunyuanImageApp(auto_load=auto_load, use_distilled=use_distilled, device=device)
351
 
352
- # Custom CSS for better styling
353
  css = """
354
  .gradio-container {
355
  max-width: 1200px !important;
@@ -362,11 +362,21 @@ def create_interface(auto_load: bool = True, use_distilled: bool = False, device
362
  margin-bottom: 20px;
363
  }
364
  .model-info {
365
- background: #f8f9fa;
366
- border: 1px solid #dee2e6;
367
  border-radius: 8px;
368
  padding: 15px;
369
  margin-bottom: 20px;
 
 
 
 
 
 
 
 
 
 
370
  }
371
  """
372
 
 
349
  """Create the Gradio interface."""
350
  app = HunyuanImageApp(auto_load=auto_load, use_distilled=use_distilled, device=device)
351
 
352
+ # Custom CSS for better styling with dark mode support
353
  css = """
354
  .gradio-container {
355
  max-width: 1200px !important;
 
362
  margin-bottom: 20px;
363
  }
364
  .model-info {
365
+ background: var(--background-fill-secondary);
366
+ border: 1px solid var(--border-color-primary);
367
  border-radius: 8px;
368
  padding: 15px;
369
  margin-bottom: 20px;
370
+ color: var(--body-text-color);
371
+ }
372
+ .model-info h1, .model-info h2, .model-info h3 {
373
+ color: var(--body-text-color) !important;
374
+ }
375
+ .model-info p, .model-info li {
376
+ color: var(--body-text-color) !important;
377
+ }
378
+ .model-info strong {
379
+ color: var(--body-text-color) !important;
380
  }
381
  """
382