DreamStream-1 commited on
Commit
a919084
·
verified ·
1 Parent(s): 9a5ce03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +46 -3
app.py CHANGED
@@ -163,12 +163,55 @@ def app_function(user_input, location, query, history):
163
 
164
  # Gradio Interface
165
  custom_css = """
166
- body { background: linear-gradient(135deg,#0d0d0d,#ff5722); color: white; }
167
- textarea, input { background: black; color: white; border: 2px solid orange; padding: 10px }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
  """
169
 
170
  with gr.Blocks(css=custom_css) as app:
171
- gr.HTML("<h1 style='text-align: center'>🌟 Well-Being Companion</h1>")
172
  with gr.Row():
173
  user_input = gr.Textbox(label="Your Message")
174
  location = gr.Textbox(label="Your Location")
 
163
 
164
  # Gradio Interface
165
  custom_css = """
166
+ body {
167
+ font-family: 'Roboto', sans-serif;
168
+ background: linear-gradient(135deg,#0d0d0d,#ff5722);
169
+ color: white;
170
+ }
171
+
172
+ h1 {
173
+ background: #ffffff;
174
+ color: #000000;
175
+ border-radius: 8px;
176
+ padding: 10px;
177
+ font-weight: bold;
178
+ text-align: center;
179
+ font-size: 2.5rem;
180
+ }
181
+
182
+ textarea, input {
183
+ background: black;
184
+ color: white;
185
+ border: 2px solid orange;
186
+ font-size: 1rem;
187
+ padding: 10px;
188
+ border-radius: 8px;
189
+ }
190
+
191
+ button {
192
+ background: linear-gradient(135deg, orange, #ff4500);
193
+ color: white;
194
+ padding: 10px;
195
+ border-radius: 8px;
196
+ font-weight: bold;
197
+ font-size: 1.2rem;
198
+ border: none;
199
+ cursor: pointer;
200
+ }
201
+
202
+ button:hover {
203
+ box-shadow: 0px 4px 8px rgba(255, 165, 0, 0.5);
204
+ }
205
+
206
+ .chat-container .human {
207
+ background: linear-gradient(to right, #ff7f50, orange);
208
+ color: white;
209
+ padding: 8px;
210
+ }
211
  """
212
 
213
  with gr.Blocks(css=custom_css) as app:
214
+ gr.HTML("<h1>🌟 Well-Being Companion</h1>")
215
  with gr.Row():
216
  user_input = gr.Textbox(label="Your Message")
217
  location = gr.Textbox(label="Your Location")