Chris
commited on
Commit
·
d57fa7d
1
Parent(s):
446334b
Final 4.3.1
Browse files- src/app.py +19 -4
src/app.py
CHANGED
|
@@ -346,10 +346,25 @@ def create_interface():
|
|
| 346 |
# Custom CSS for better styling
|
| 347 |
css = """
|
| 348 |
.container {max-width: 1200px; margin: auto; padding: 20px;}
|
| 349 |
-
.output-markdown {font-size: 16px; line-height: 1.6;}
|
| 350 |
-
.details-box {background-color: #f8f9fa; padding: 15px; border-radius: 8px; margin: 10px 0;}
|
| 351 |
-
.reasoning-box {background-color: #fff; padding: 20px; border: 1px solid #dee2e6; border-radius: 8px;}
|
| 352 |
-
.unit4-section {background-color: #e3f2fd; padding: 20px; border-radius: 8px; margin: 20px 0;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 353 |
"""
|
| 354 |
|
| 355 |
with gr.Blocks(css=css, title="GAIA Agent System", theme=gr.themes.Soft()) as interface:
|
|
|
|
| 346 |
# Custom CSS for better styling
|
| 347 |
css = """
|
| 348 |
.container {max-width: 1200px; margin: auto; padding: 20px;}
|
| 349 |
+
.output-markdown {font-size: 16px; line-height: 1.6; color: #333;}
|
| 350 |
+
.details-box {background-color: #f8f9fa; padding: 15px; border-radius: 8px; margin: 10px 0; color: #333;}
|
| 351 |
+
.reasoning-box {background-color: #fff; padding: 20px; border: 1px solid #dee2e6; border-radius: 8px; color: #333;}
|
| 352 |
+
.unit4-section {background-color: #e3f2fd; padding: 20px; border-radius: 8px; margin: 20px 0; color: #1565c0;}
|
| 353 |
+
|
| 354 |
+
/* Fix white text on white background issues */
|
| 355 |
+
.gradio-container {color: #333 !important;}
|
| 356 |
+
.gradio-container .gr-button-primary {background: #007bff; color: white;}
|
| 357 |
+
.gradio-container .gr-button-secondary {background: #6c757d; color: white;}
|
| 358 |
+
.gradio-container .gr-textbox textarea {color: #333; background: white;}
|
| 359 |
+
.gradio-container .gr-markdown {color: #333;}
|
| 360 |
+
|
| 361 |
+
/* Ensure login section has proper contrast */
|
| 362 |
+
.oauth-login {background: #f8f9fa; padding: 10px; border-radius: 5px; margin: 10px 0;}
|
| 363 |
+
|
| 364 |
+
/* Fix any remaining text contrast issues */
|
| 365 |
+
.gradio-container * {color: inherit;}
|
| 366 |
+
.gradio-container h1, .gradio-container h2, .gradio-container h3 {color: #333 !important;}
|
| 367 |
+
.gradio-container p {color: #555 !important;}
|
| 368 |
"""
|
| 369 |
|
| 370 |
with gr.Blocks(css=css, title="GAIA Agent System", theme=gr.themes.Soft()) as interface:
|