DreamStream-1 commited on
Commit
753c4a8
·
verified ·
1 Parent(s): 825c9f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -268,19 +268,16 @@ with gr.Blocks(theme='shivi/calm_seafoam') as app: # Apply the specified theme
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 side by side
271
- submit_chatbot = gr.Button(value="Submit Your Message", variant="primary")
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)
276
  emotion = gr.Textbox(label="Detected Emotion", show_label=True)
277
 
 
278
  suggestions_markdown = gr.Markdown(label="Suggestions")
279
- # Set the DataFrame to have consistent styling
280
  professionals = gr.DataFrame(label="Nearby Health Professionals", headers=["Name", "Address"])
281
- professionals.style.grid = "100%"; # Style to ensure it takes the same width
282
- professionals.style.height = "auto"; # Automatic height adjustment
283
-
284
  map_html = gr.HTML(label="Interactive Map")
285
 
286
  # Functionality to clear the chat input
 
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 side by side
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)
276
  emotion = gr.Textbox(label="Detected Emotion", show_label=True)
277
 
278
+ # Keep the DataFrame styling uniform
279
  suggestions_markdown = gr.Markdown(label="Suggestions")
 
280
  professionals = gr.DataFrame(label="Nearby Health Professionals", headers=["Name", "Address"])
 
 
 
281
  map_html = gr.HTML(label="Interactive Map")
282
 
283
  # Functionality to clear the chat input