Spaces:
Sleeping
Sleeping
Fix: Improve text visibility with CSS override
Browse files
app_hf.py
CHANGED
|
@@ -20,6 +20,22 @@ from dashboard_simple import create_html_dashboard
|
|
| 20 |
if __name__ == "__main__":
|
| 21 |
# Create the HTML content
|
| 22 |
html_content = create_html_dashboard()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
# Create Gradio interface with HTML
|
| 25 |
demo = gr.Blocks()
|
|
|
|
| 20 |
if __name__ == "__main__":
|
| 21 |
# Create the HTML content
|
| 22 |
html_content = create_html_dashboard()
|
| 23 |
+
|
| 24 |
+
# Add CSS override for better text visibility in Gradio
|
| 25 |
+
css_override = """
|
| 26 |
+
<style>
|
| 27 |
+
body, body * {
|
| 28 |
+
color: #222 !important;
|
| 29 |
+
}
|
| 30 |
+
h1, h2, h3, h4, h5, h6 {
|
| 31 |
+
color: #667eea !important;
|
| 32 |
+
}
|
| 33 |
+
.model-badge, .tab-btn {
|
| 34 |
+
color: white !important;
|
| 35 |
+
}
|
| 36 |
+
</style>
|
| 37 |
+
"""
|
| 38 |
+
html_content = css_override + html_content
|
| 39 |
|
| 40 |
# Create Gradio interface with HTML
|
| 41 |
demo = gr.Blocks()
|