Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,4 +36,36 @@ def main():
|
|
| 36 |
st.error(f"Error: {str(e)}")
|
| 37 |
|
| 38 |
if __name__ == "__main__":
|
| 39 |
-
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
st.error(f"Error: {str(e)}")
|
| 37 |
|
| 38 |
if __name__ == "__main__":
|
| 39 |
+
main()
|
| 40 |
+
# Add custom CSS for background color
|
| 41 |
+
custom_css = """
|
| 42 |
+
<style>
|
| 43 |
+
:root {
|
| 44 |
+
--main-bg-color: #ead5d2 !important;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
body, html {
|
| 48 |
+
background-color: #ead5d2 !important;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
.main, .app, .container, .chat-container {
|
| 52 |
+
background-color: #ead5d2 !important;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
/* Override any dark theme styles */
|
| 56 |
+
.dark body, .dark html {
|
| 57 |
+
background-color: #ead5d2 !important;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
/* Ensure text is readable on the new background */
|
| 61 |
+
.text-white {
|
| 62 |
+
color: #333333 !important;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
.text-gray-800 {
|
| 66 |
+
color: #444444 !important;
|
| 67 |
+
}
|
| 68 |
+
</style>
|
| 69 |
+
"""
|
| 70 |
+
|
| 71 |
+
# Apply the custom CSS (this will depend on how your app.py is structured)
|