DreamStream-1 commited on
Commit
8bec3d6
·
verified ·
1 Parent(s): 86138d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -21
app.py CHANGED
@@ -318,28 +318,11 @@ 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
- # 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")
 
318
  sentiment = gr.Textbox(label="Detected Sentiment", show_label=True)
319
  emotion = gr.Textbox(label="Detected Emotion", show_label=True)
320
 
321
+ # Apply styles and create the DataFrame
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
322
  professionals = gr.DataFrame(
323
+ label="Nearby Health Professionals", # Use label parameter to set the title
324
+ headers=["Name", "Address"],
325
+ value=[] # Initialize with empty data
326
  )
327
 
328
  suggestions_markdown = gr.Markdown(label="Suggestions")