addaweathers commited on
Commit
fb50275
·
verified ·
1 Parent(s): 003d8eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -21
app.py CHANGED
@@ -129,11 +129,9 @@ def chat_with_portfolio(message, history):
129
  # Fixed CSS for Gradio 5.0 - properly sized icons and full background
130
  custom_css = """
131
  @import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap');
132
-
133
  * {
134
  font-family: 'Quicksand', sans-serif !important;
135
  }
136
-
137
  /* Fix for white space - apply gradient to body and html */
138
  body, html {
139
  margin: 0 !important;
@@ -142,21 +140,17 @@ body, html {
142
  background: linear-gradient(135deg, #a78bfa 0%, #6366f1 50%, #3b82f6 100%) !important;
143
  background-attachment: fixed !important;
144
  }
145
-
146
  .gradio-container {
147
  background: transparent !important;
148
  min-height: 100vh !important;
149
  }
150
-
151
  .main {
152
  background: transparent !important;
153
  }
154
-
155
  /* Make the app container fill the space */
156
  .app {
157
  background: transparent !important;
158
  }
159
-
160
  /* Chat messages */
161
  .message-wrap {
162
  background: rgba(255, 255, 255, 0.15) !important;
@@ -165,11 +159,9 @@ body, html {
165
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
166
  border-radius: 20px !important;
167
  }
168
-
169
  .message {
170
  color: white !important;
171
  }
172
-
173
  /* Input textarea */
174
  .input-wrap textarea,
175
  textarea {
@@ -179,11 +171,9 @@ textarea {
179
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
180
  border-radius: 12px !important;
181
  }
182
-
183
  textarea::placeholder {
184
  color: rgba(255, 255, 255, 0.6) !important;
185
  }
186
-
187
  /* Fix button and icon sizes for Gradio 5.0 */
188
  button {
189
  height: 44px !important;
@@ -191,7 +181,6 @@ button {
191
  max-height: 44px !important;
192
  padding: 8px 12px !important;
193
  }
194
-
195
  /* Target SVG icons inside buttons */
196
  button svg,
197
  button img {
@@ -202,7 +191,6 @@ button img {
202
  max-width: 20px !important;
203
  max-height: 20px !important;
204
  }
205
-
206
  /* Submit button specific sizing */
207
  .submit-btn,
208
  button[type="submit"],
@@ -212,7 +200,6 @@ button[type="submit"],
212
  min-width: 60px !important;
213
  max-width: 60px !important;
214
  }
215
-
216
  /* Action buttons (clear, undo, etc) */
217
  .chatbot .action-button,
218
  .chatbot button[aria-label*="Clear"],
@@ -222,7 +209,6 @@ button[type="submit"],
222
  min-width: 44px !important;
223
  max-width: 44px !important;
224
  }
225
-
226
  /* Example buttons */
227
  .examples button {
228
  background: rgba(255, 255, 255, 0.1) !important;
@@ -233,30 +219,26 @@ button[type="submit"],
233
  max-height: none !important;
234
  padding: 12px 16px !important;
235
  }
236
-
237
  .examples button:hover {
238
  background: rgba(255, 255, 255, 0.2) !important;
239
  }
240
-
241
- /* Chatbot container */
242
  .chatbot {
243
  background: rgba(255, 255, 255, 0.05) !important;
244
  border-radius: 20px !important;
245
- min-height: 400px !important;
 
246
  }
247
-
248
  /* Center and constrain the content */
249
  .contain {
250
  max-width: 1200px !important;
251
  margin: 0 auto !important;
252
  padding: 20px !important;
253
  }
254
-
255
  /* Hide footer */
256
  footer {
257
  display: none !important;
258
  }
259
-
260
  /* Additional icon fix for any nested elements */
261
  button * svg,
262
  button * img {
 
129
  # Fixed CSS for Gradio 5.0 - properly sized icons and full background
130
  custom_css = """
131
  @import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap');
 
132
  * {
133
  font-family: 'Quicksand', sans-serif !important;
134
  }
 
135
  /* Fix for white space - apply gradient to body and html */
136
  body, html {
137
  margin: 0 !important;
 
140
  background: linear-gradient(135deg, #a78bfa 0%, #6366f1 50%, #3b82f6 100%) !important;
141
  background-attachment: fixed !important;
142
  }
 
143
  .gradio-container {
144
  background: transparent !important;
145
  min-height: 100vh !important;
146
  }
 
147
  .main {
148
  background: transparent !important;
149
  }
 
150
  /* Make the app container fill the space */
151
  .app {
152
  background: transparent !important;
153
  }
 
154
  /* Chat messages */
155
  .message-wrap {
156
  background: rgba(255, 255, 255, 0.15) !important;
 
159
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
160
  border-radius: 20px !important;
161
  }
 
162
  .message {
163
  color: white !important;
164
  }
 
165
  /* Input textarea */
166
  .input-wrap textarea,
167
  textarea {
 
171
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
172
  border-radius: 12px !important;
173
  }
 
174
  textarea::placeholder {
175
  color: rgba(255, 255, 255, 0.6) !important;
176
  }
 
177
  /* Fix button and icon sizes for Gradio 5.0 */
178
  button {
179
  height: 44px !important;
 
181
  max-height: 44px !important;
182
  padding: 8px 12px !important;
183
  }
 
184
  /* Target SVG icons inside buttons */
185
  button svg,
186
  button img {
 
191
  max-width: 20px !important;
192
  max-height: 20px !important;
193
  }
 
194
  /* Submit button specific sizing */
195
  .submit-btn,
196
  button[type="submit"],
 
200
  min-width: 60px !important;
201
  max-width: 60px !important;
202
  }
 
203
  /* Action buttons (clear, undo, etc) */
204
  .chatbot .action-button,
205
  .chatbot button[aria-label*="Clear"],
 
209
  min-width: 44px !important;
210
  max-width: 44px !important;
211
  }
 
212
  /* Example buttons */
213
  .examples button {
214
  background: rgba(255, 255, 255, 0.1) !important;
 
219
  max-height: none !important;
220
  padding: 12px 16px !important;
221
  }
 
222
  .examples button:hover {
223
  background: rgba(255, 255, 255, 0.2) !important;
224
  }
225
+ /* Chatbot container - INCREASED SIZE to 700px */
 
226
  .chatbot {
227
  background: rgba(255, 255, 255, 0.05) !important;
228
  border-radius: 20px !important;
229
+ min-height: 700px !important;
230
+ height: 700px !important;
231
  }
 
232
  /* Center and constrain the content */
233
  .contain {
234
  max-width: 1200px !important;
235
  margin: 0 auto !important;
236
  padding: 20px !important;
237
  }
 
238
  /* Hide footer */
239
  footer {
240
  display: none !important;
241
  }
 
242
  /* Additional icon fix for any nested elements */
243
  button * svg,
244
  button * img {