Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -141,8 +141,45 @@ def app_function(message, location, query, history):
|
|
141 |
professionals, map_html = get_health_professionals_and_map(location, query) # Find professionals & map
|
142 |
return chatbot_history, sentiment, emotion, suggestions, professionals, map_html
|
143 |
|
144 |
-
#
|
145 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
gr.Markdown("# π Well-Being Companion")
|
147 |
gr.Markdown("Empowering Your Mental Health Journey π")
|
148 |
|
|
|
141 |
professionals, map_html = get_health_professionals_and_map(location, query) # Find professionals & map
|
142 |
return chatbot_history, sentiment, emotion, suggestions, professionals, map_html
|
143 |
|
144 |
+
# Custom CSS for Visual Styling
|
145 |
+
custom_css = """
|
146 |
+
body {
|
147 |
+
background: linear-gradient(135deg, #000000, #ff5722);
|
148 |
+
color: white;
|
149 |
+
font-family: 'Arial', sans-serif;
|
150 |
+
}
|
151 |
+
button {
|
152 |
+
background-color: #ff5722 !important;
|
153 |
+
border: none !important;
|
154 |
+
color: white !important;
|
155 |
+
padding: 12px 20px;
|
156 |
+
font-size: 16px;
|
157 |
+
border-radius: 8px;
|
158 |
+
cursor: pointer;
|
159 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
|
160 |
+
}
|
161 |
+
button:hover {
|
162 |
+
background-color: #e64a19 !important;
|
163 |
+
}
|
164 |
+
textarea, input[type="text"] {
|
165 |
+
background: rgba(255, 255, 255, 0.1) !important;
|
166 |
+
color: white !important;
|
167 |
+
border: 2px solid #ff5722 !important;
|
168 |
+
padding: 12px !important;
|
169 |
+
border-radius: 8px !important;
|
170 |
+
font-size: 14px;
|
171 |
+
}
|
172 |
+
#components-container {
|
173 |
+
margin-top: 20px;
|
174 |
+
}
|
175 |
+
.gradio-container {
|
176 |
+
padding: 16px !important;
|
177 |
+
box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.6);
|
178 |
+
}
|
179 |
+
"""
|
180 |
+
|
181 |
+
# Gradio Interface
|
182 |
+
with gr.Blocks(css=custom_css) as app:
|
183 |
gr.Markdown("# π Well-Being Companion")
|
184 |
gr.Markdown("Empowering Your Mental Health Journey π")
|
185 |
|