Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,16 +39,16 @@ if __name__ == "__main__":
|
|
| 39 |
main()
|
| 40 |
# Add custom CSS for background color
|
| 41 |
custom_css = """
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
--main-bg-color: #ead5d2 !important;
|
| 45 |
-
}
|
| 46 |
|
|
|
|
|
|
|
| 47 |
body, html {
|
| 48 |
background-color: #ead5d2 !important;
|
| 49 |
}
|
| 50 |
|
| 51 |
-
.
|
| 52 |
background-color: #ead5d2 !important;
|
| 53 |
}
|
| 54 |
|
|
@@ -65,7 +65,14 @@ body, html {
|
|
| 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)
|
|
|
|
| 39 |
main()
|
| 40 |
# Add custom CSS for background color
|
| 41 |
custom_css = """
|
| 42 |
+
import gradio as gr
|
| 43 |
+
import os
|
|
|
|
|
|
|
| 44 |
|
| 45 |
+
# Custom CSS for background color
|
| 46 |
+
custom_css = """
|
| 47 |
body, html {
|
| 48 |
background-color: #ead5d2 !important;
|
| 49 |
}
|
| 50 |
|
| 51 |
+
.gradio-container, .app, .main-content {
|
| 52 |
background-color: #ead5d2 !important;
|
| 53 |
}
|
| 54 |
|
|
|
|
| 65 |
.text-gray-800 {
|
| 66 |
color: #444444 !important;
|
| 67 |
}
|
|
|
|
| 68 |
"""
|
| 69 |
|
| 70 |
+
# Apply the custom CSS to your Gradio interface
|
| 71 |
+
with gr.Blocks(css=custom_css) as demo:
|
| 72 |
+
# Your existing LibreChat interface code here
|
| 73 |
+
pass
|
| 74 |
+
|
| 75 |
+
if __name__ == "__main__":
|
| 76 |
+
demo.launch()
|
| 77 |
+
|
| 78 |
# Apply the custom CSS (this will depend on how your app.py is structured)
|