DreamStream-1 commited on
Commit
a699c5b
·
verified ·
1 Parent(s): a4c9f49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -179,10 +179,16 @@ textarea, input[type="text"], .gr-chatbot {
179
  border-radius: 8px !important;
180
  padding: 10px;
181
  }
 
 
 
 
 
182
  h1 {
183
- font-size: 3rem;
184
  font-weight: bold;
185
  margin-bottom: 10px;
 
186
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
187
  }
188
  h2 {
@@ -201,13 +207,13 @@ with gr.Blocks(css=custom_css) as app:
201
  with gr.Row():
202
  user_message = gr.Textbox(label="Your Message", placeholder="Enter your message...")
203
  user_location = gr.Textbox(label="Your Location", placeholder="Enter your location...")
204
- search_query = gr.Textbox(label="Query", placeholder="Search for professionals...")
205
  submit_btn = gr.Button("Submit")
206
 
207
- chatbot_box = gr.Chatbot(label="Chat History") # Chatbot history (black background)
208
  emotion_output = gr.Textbox(label="Detected Emotion")
209
  sentiment_output = gr.Textbox(label="Detected Sentiment")
210
- suggestions_output = gr.DataFrame(headers=["Title", "Links"], label="Suggestions")
211
  map_output = gr.HTML(label="Nearby Professionals Map")
212
  professional_display = gr.Textbox(label="Nearby Professionals", lines=5)
213
 
 
179
  border-radius: 8px !important;
180
  padding: 10px;
181
  }
182
+ .gr-dataframe {
183
+ font-size: 14px;
184
+ height: 350px; /* Make the suggestions box larger */
185
+ overflow-y: scroll; /* Add scroll if the table doesn't fit */
186
+ }
187
  h1 {
188
+ font-size: 3.5rem; /* Bigger and bold heading */
189
  font-weight: bold;
190
  margin-bottom: 10px;
191
+ color: white;
192
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
193
  }
194
  h2 {
 
207
  with gr.Row():
208
  user_message = gr.Textbox(label="Your Message", placeholder="Enter your message...")
209
  user_location = gr.Textbox(label="Your Location", placeholder="Enter your location...")
210
+ search_query = gr.Textbox(label="Search for...", placeholder="Search for professionals like therapists...")
211
  submit_btn = gr.Button("Submit")
212
 
213
+ chatbot_box = gr.Chatbot(label="Chat History") # Black chatbot background
214
  emotion_output = gr.Textbox(label="Detected Emotion")
215
  sentiment_output = gr.Textbox(label="Detected Sentiment")
216
+ suggestions_output = gr.DataFrame(headers=["Title", "Links"], label="Suggestions") # Larger data frame
217
  map_output = gr.HTML(label="Nearby Professionals Map")
218
  professional_display = gr.Textbox(label="Nearby Professionals", lines=5)
219