DreamStream-1 commited on
Commit
86138d3
·
verified ·
1 Parent(s): 622336b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -1
app.py CHANGED
@@ -318,8 +318,31 @@ with gr.Blocks(theme="shivi/calm_seafoam") as app:
318
  sentiment = gr.Textbox(label="Detected Sentiment", show_label=True)
319
  emotion = gr.Textbox(label="Detected Emotion", show_label=True)
320
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
321
  suggestions_markdown = gr.Markdown(label="Suggestions")
322
- professionals = gr.DataFrame(label="Nearby Health Professionals", headers=["Name", "Address"])
323
  map_html = gr.HTML(label="Interactive Map")
324
 
325
  # Functionality to clear the chat input
 
318
  sentiment = gr.Textbox(label="Detected Sentiment", show_label=True)
319
  emotion = gr.Textbox(label="Detected Emotion", show_label=True)
320
 
321
+ # CSS styles for label and DataFrame
322
+ data_frame_styles = """
323
+ <style>
324
+ .dataframe-label {
325
+ font-size: 1.5em; /* Increase label font size */
326
+ font-weight: bold; /* Make label bold */
327
+ text-align: center; /* Center the label */
328
+ margin-bottom: 10px; /* Space below the label */
329
+ color: #00796b; /* Match the theme color */
330
+ }
331
+ .gr-dataframe {
332
+ border: 2px solid #00796b; /* Dark teal border */
333
+ border-radius: 10px; /* Round corners */
334
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow for depth */
335
+ }
336
+ </style>
337
+ <div class="dataframe-label">Nearby Health Professionals</div>
338
+ """
339
+
340
+ professionals = gr.DataFrame(
341
+ label=None, # Don't use label here as we are applying custom styles
342
+ headers=["Name", "Address"]
343
+ )
344
+
345
  suggestions_markdown = gr.Markdown(label="Suggestions")
 
346
  map_html = gr.HTML(label="Interactive Map")
347
 
348
  # Functionality to clear the chat input