Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -224,18 +224,33 @@ textarea:hover, input:hover {
|
|
224 |
text-align: center;
|
225 |
font-weight: bold;
|
226 |
color: white;
|
227 |
-
font-size:
|
228 |
margin-bottom: 20px;
|
229 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
"""
|
231 |
|
232 |
# Gradio Application
|
233 |
with gr.Blocks(css=custom_css) as app:
|
234 |
gr.HTML("<h1>🌟 Well-Being Companion</h1>")
|
235 |
with gr.Row():
|
236 |
-
user_input = gr.Textbox(label="Your Message")
|
237 |
-
location = gr.Textbox(label="Your Location")
|
238 |
-
query = gr.Textbox(label="Search
|
239 |
chatbot = gr.Chatbot(label="Chat History")
|
240 |
sentiment = gr.Textbox(label="Detected Sentiment")
|
241 |
emotion = gr.Textbox(label="Detected Emotion")
|
@@ -254,4 +269,4 @@ with gr.Blocks(css=custom_css) as app:
|
|
254 |
outputs=[chatbot, sentiment, emotion, suggestions, professionals, map_html],
|
255 |
)
|
256 |
|
257 |
-
app.launch()
|
|
|
224 |
text-align: center;
|
225 |
font-weight: bold;
|
226 |
color: white;
|
227 |
+
font-size: 4.2rem;
|
228 |
margin-bottom: 20px;
|
229 |
}
|
230 |
+
|
231 |
+
/* Style for the submit button */
|
232 |
+
.gr-button {
|
233 |
+
background-color: #ae1c93;
|
234 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
|
235 |
+
transition: background-color 0.3s ease;
|
236 |
+
}
|
237 |
+
|
238 |
+
.gr-button:hover {
|
239 |
+
background-color: #8f167b;
|
240 |
+
}
|
241 |
+
|
242 |
+
.gr-button:active {
|
243 |
+
background-color: #7f156b;
|
244 |
+
}
|
245 |
"""
|
246 |
|
247 |
# Gradio Application
|
248 |
with gr.Blocks(css=custom_css) as app:
|
249 |
gr.HTML("<h1>🌟 Well-Being Companion</h1>")
|
250 |
with gr.Row():
|
251 |
+
user_input = gr.Textbox(label="Please Enter Your Message Here")
|
252 |
+
location = gr.Textbox(label="Please Enter Your Current Location Here")
|
253 |
+
query = gr.Textbox(label="Please Enter Which Health Professional You Want To Search Nearby")
|
254 |
chatbot = gr.Chatbot(label="Chat History")
|
255 |
sentiment = gr.Textbox(label="Detected Sentiment")
|
256 |
emotion = gr.Textbox(label="Detected Emotion")
|
|
|
269 |
outputs=[chatbot, sentiment, emotion, suggestions, professionals, map_html],
|
270 |
)
|
271 |
|
272 |
+
app.launch()
|