Wajahat698 commited on
Commit
3e11306
·
verified ·
1 Parent(s): 512085f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +33 -1
app.py CHANGED
@@ -578,8 +578,40 @@ function refresh() {
578
  }
579
  """
580
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
581
  # Create the Gradio interface with light theme
582
- with gr.Blocks(css=css, js=js, theme=gr.themes.Soft()) as demo:
583
  gr.Markdown("""
584
  <h2 style="text-align: center; font-size: 2.25rem; font-weight: 600;">
585
  Driver Analysis - Multi-Target Analysis
 
578
  }
579
  """
580
 
581
+
582
+ custom_theme = gr.themes.Soft().set(
583
+ # Primary colors
584
+ primary_50="#EFFE8A",
585
+ primary_100="#f5f0b3",
586
+ primary_200="#ebe6a6",
587
+ primary_300="#e1dc99",
588
+ primary_400="#d7d28c",
589
+ primary_500="#cdc87f",
590
+ primary_600="#c3be72",
591
+ primary_700="#b9b465",
592
+ primary_800="#afaa58",
593
+ primary_900="#a5a04b",
594
+
595
+ # Background colors
596
+ background_fill_primary="white",
597
+ background_fill_secondary="#EFFE8A",
598
+
599
+ # Button colors
600
+ button_primary_background_fill="#EFFE8A",
601
+ button_primary_background_fill_hover="#f5f0b3",
602
+ button_primary_text_color="#333333",
603
+
604
+ # Border colors
605
+ border_color_primary="rgba(239, 254, 138, 0.5)",
606
+
607
+ # Block styling
608
+ block_background_fill="white",
609
+ block_border_color="rgba(239, 254, 138, 0.3)",
610
+ )
611
+
612
+
613
  # Create the Gradio interface with light theme
614
+ with gr.Blocks(css=css, js=js, theme=custom_theme) as demo:
615
  gr.Markdown("""
616
  <h2 style="text-align: center; font-size: 2.25rem; font-weight: 600;">
617
  Driver Analysis - Multi-Target Analysis