Aditya
commited on
Commit
·
3074e79
1
Parent(s):
1d2f4d4
modified app.py
Browse files
app.py
CHANGED
|
@@ -76,11 +76,24 @@ footer, .gradio-footer, .svelte-1ipelgc, .gradio-logo, .gradio-app__settings {
|
|
| 76 |
.btn-primary:hover { background: #1557b0 !important; border-color: #1557b0 !important; }
|
| 77 |
.results-text strong { color: #0056b3 !important; font-weight: bold !important; }
|
| 78 |
div[data-testid="markdown"] strong { color: #0056b3 !important; font-weight: bold !important; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
"""
|
| 80 |
|
| 81 |
with gr.Blocks(css=custom_css) as demo:
|
| 82 |
-
gr.Markdown("<h1 style='font-size:2.5em; color:#007dc3; margin-bottom:0;'>SR100 Vision Model Space</h1>", elem_id="main_title")
|
| 83 |
-
gr.Markdown("<h3 style='margin-top:0; color
|
| 84 |
user_text = gr.Markdown("")
|
| 85 |
with gr.Row():
|
| 86 |
with gr.Column(scale=1):
|
|
|
|
| 76 |
.btn-primary:hover { background: #1557b0 !important; border-color: #1557b0 !important; }
|
| 77 |
.results-text strong { color: #0056b3 !important; font-weight: bold !important; }
|
| 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 {
|
| 86 |
+
color: #e9ecef !important;
|
| 87 |
+
text-shadow: 0px 0px 2px rgba(0,0,0,0.5);
|
| 88 |
+
}
|
| 89 |
+
.dark #subtitle a {
|
| 90 |
+
color: #4dabf7 !important;
|
| 91 |
+
}
|
| 92 |
"""
|
| 93 |
|
| 94 |
with gr.Blocks(css=custom_css) as demo:
|
| 95 |
+
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")
|
| 96 |
+
gr.Markdown("<h3 style='margin-top:0; color:var(--body-text-color, #000); text-shadow: 0px 0px 2px rgba(255,255,255,0.5);'>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")
|
| 97 |
user_text = gr.Markdown("")
|
| 98 |
with gr.Row():
|
| 99 |
with gr.Column(scale=1):
|