Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -258,7 +258,7 @@ def predict_disease(symptoms):
|
|
258 |
return "\n".join(markdown_output)
|
259 |
|
260 |
# Gradio Application Interface
|
261 |
-
with gr.Blocks(theme='shivi/calm_seafoam') as app: #
|
262 |
gr.HTML("<h1>🌟 Well-Being Companion</h1>")
|
263 |
|
264 |
with gr.Tab("Well-Being Chatbot"):
|
@@ -267,8 +267,9 @@ with gr.Blocks(theme='shivi/calm_seafoam') as app: # Directly set theme here
|
|
267 |
location = gr.Textbox(label="Please Enter Your Current Location", placeholder="E.g., Honolulu", max_lines=1)
|
268 |
query = gr.Textbox(label="Search Health Professionals Nearby", placeholder="E.g., Health Professionals", max_lines=1)
|
269 |
|
270 |
-
|
271 |
-
|
|
|
272 |
|
273 |
chatbot = gr.Chatbot(label="Chat History", show_label=True)
|
274 |
sentiment = gr.Textbox(label="Detected Sentiment", show_label=True)
|
|
|
258 |
return "\n".join(markdown_output)
|
259 |
|
260 |
# Gradio Application Interface
|
261 |
+
with gr.Blocks(theme='shivi/calm_seafoam') as app: # Apply the specified theme
|
262 |
gr.HTML("<h1>🌟 Well-Being Companion</h1>")
|
263 |
|
264 |
with gr.Tab("Well-Being Chatbot"):
|
|
|
267 |
location = gr.Textbox(label="Please Enter Your Current Location", placeholder="E.g., Honolulu", max_lines=1)
|
268 |
query = gr.Textbox(label="Search Health Professionals Nearby", placeholder="E.g., Health Professionals", max_lines=1)
|
269 |
|
270 |
+
with gr.Row(): # Align Submit and Clear buttons
|
271 |
+
submit_chatbot = gr.Button(value="Submit Your Message", variant="primary", icon="fa-paper-plane")
|
272 |
+
clear_chatbot = gr.Button(value="Clear", variant="secondary") # Clear button
|
273 |
|
274 |
chatbot = gr.Chatbot(label="Chat History", show_label=True)
|
275 |
sentiment = gr.Textbox(label="Detected Sentiment", show_label=True)
|