Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ def respond(
|
|
69 |
else:
|
70 |
yield f"An error occurred: {e}"
|
71 |
|
72 |
-
# Custom CSS for light blue background
|
73 |
custom_css = """
|
74 |
.gradio-container {
|
75 |
background-color: #e6f3ff !important;
|
@@ -77,8 +77,24 @@ custom_css = """
|
|
77 |
.chat-window {
|
78 |
background-color: #f0f8ff !important;
|
79 |
}
|
80 |
-
.message
|
81 |
-
background-color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
}
|
83 |
"""
|
84 |
|
@@ -118,5 +134,4 @@ demo = gr.ChatInterface(
|
|
118 |
|
119 |
# Launch the Gradio app
|
120 |
if __name__ == "__main__":
|
121 |
-
demo.launch()
|
122 |
-
|
|
|
69 |
else:
|
70 |
yield f"An error occurred: {e}"
|
71 |
|
72 |
+
# Custom CSS for light blue background and message tiles
|
73 |
custom_css = """
|
74 |
.gradio-container {
|
75 |
background-color: #e6f3ff !important;
|
|
|
77 |
.chat-window {
|
78 |
background-color: #f0f8ff !important;
|
79 |
}
|
80 |
+
.message.user, .message.bot {
|
81 |
+
background-color: #e6f3ff !important;
|
82 |
+
border: 1px solid #cce4ff !important;
|
83 |
+
padding: 15px !important;
|
84 |
+
border-radius: 8px !important;
|
85 |
+
}
|
86 |
+
.message.user {
|
87 |
+
background-color: #e1f0ff !important;
|
88 |
+
}
|
89 |
+
.message.bot {
|
90 |
+
background-color: #e6f3ff !important;
|
91 |
+
}
|
92 |
+
.input-box, .output-box {
|
93 |
+
background-color: #e6f3ff !important;
|
94 |
+
border: 1px solid #cce4ff !important;
|
95 |
+
}
|
96 |
+
textarea {
|
97 |
+
background-color: #e6f3ff !important;
|
98 |
}
|
99 |
"""
|
100 |
|
|
|
134 |
|
135 |
# Launch the Gradio app
|
136 |
if __name__ == "__main__":
|
137 |
+
demo.launch()
|
|