DreamStream-1 commited on
Commit
b0e9960
·
verified ·
1 Parent(s): efe09e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -267,7 +267,7 @@ with gr.Blocks(theme='shivi/calm_seafoam') as app: # Apply the specified theme
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
 
@@ -276,7 +276,11 @@ with gr.Blocks(theme='shivi/calm_seafoam') as app: # Apply the specified theme
276
  emotion = gr.Textbox(label="Detected Emotion", show_label=True)
277
 
278
  suggestions_markdown = gr.Markdown(label="Suggestions")
 
279
  professionals = gr.DataFrame(label="Nearby Health Professionals", headers=["Name", "Address"])
 
 
 
280
  map_html = gr.HTML(label="Interactive Map")
281
 
282
  # Functionality to clear the chat input
 
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 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
 
 
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