Aditya Sahu commited on
Commit
e8e77d9
·
verified ·
1 Parent(s): 151dbcd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -15
app.py CHANGED
@@ -78,30 +78,23 @@ footer, .gradio-footer, .svelte-1ipelgc, .gradio-logo, .gradio-app__settings {
78
  div[data-testid="markdown"] strong { color: #0056b3 !important; font-weight: bold !important; }
79
 
80
  /* Dark theme compatibility */
81
- .dark h1#main_title, .dark #main_title h1, .dark [data-testid="markdown"] h1 {
82
  color: #4dabf7 !important;
83
- text-shadow: 0px 0px 3px rgba(0,0,0,0.5) !important;
84
  }
85
- .dark h3#subtitle, .dark #subtitle h3, .dark [data-testid="markdown"] h3, .dark [data-testid="markdown"] * {
86
  color: #ffffff !important;
87
- text-shadow: 0px 0px 2px rgba(0,0,0,0.5) !important;
 
88
  }
89
- .dark #subtitle a, .dark [data-testid="markdown"] a {
90
  color: #4dabf7 !important;
91
- font-weight: bold !important;
92
- }
93
-
94
- /* Force text color in dark mode */
95
- @media (prefers-color-scheme: dark) {
96
- #subtitle h3, #subtitle * {
97
- color: #ffffff !important;
98
- }
99
  }
100
  """
101
 
102
  with gr.Blocks(css=custom_css) as demo:
103
- gr.Markdown("<h1 style='font-size:2.5em; color:#007dc3; margin-bottom:0; text-shadow: 0px 0px 3px rgba(255,255,255,0.5);'>SR100 Vision Model Space</h1>", elem_id="main_title")
104
- gr.Markdown("<h3 style='margin-top:0; color:#333333; text-shadow: 0px 0px 2px rgba(255,255,255,0.5); font-weight: 500;'>Vision models for Person Presence developed by Synaptics for specific to Astra SR100 MCU. Learn more at <a href='https://developer.synaptics.com/docs/sr/sr100/quick-start?utm_source=hf' target='_blank' style='color:#007dc3; text-decoration:underline;'>Synaptics AI Developer Zone</a></h3>", elem_id="subtitle")
105
  user_text = gr.Markdown("")
106
  with gr.Row():
107
  with gr.Column(scale=1):
 
78
  div[data-testid="markdown"] strong { color: #0056b3 !important; font-weight: bold !important; }
79
 
80
  /* Dark theme compatibility */
81
+ .dark h1#main_title, .dark #main_title h1 {
82
  color: #4dabf7 !important;
83
+ text-shadow: 0px 0px 3px rgba(0,0,0,0.5);
84
  }
85
+ .dark h3#subtitle, .dark #subtitle h3, .dark [data-testid="markdown"] #subtitle h3 {
86
  color: #ffffff !important;
87
+ text-shadow: none !important;
88
+ border: none !important;
89
  }
90
+ .dark #subtitle a {
91
  color: #4dabf7 !important;
 
 
 
 
 
 
 
 
92
  }
93
  """
94
 
95
  with gr.Blocks(css=custom_css) as demo:
96
+ gr.Markdown("<h1 style='font-size:2.5em; color:#007dc3; margin-bottom:0; text-shadow: none rgba(255,255,255,0.5);'>SR100 Vision Model Space</h1>", elem_id="main_title")
97
+ gr.Markdown("<h3 style='margin-top:0; color:#000000; text-shadow: none; font-weight: 500; border: none;'>Vision models for Person Presence developed by Synaptics for specific to Astra SR100 MCU. Learn more at <a href='https://developer.synaptics.com/docs/sr/sr100/quick-start?utm_source=hf' target='_blank' style='color:#007dc3; text-decoration:underline;'>Synaptics AI Developer Zone</a></h3>", elem_id="subtitle")
98
  user_text = gr.Markdown("")
99
  with gr.Row():
100
  with gr.Column(scale=1):