Rajan Sharma commited on
Commit
443d105
·
verified ·
1 Parent(s): 40db972

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -234,16 +234,13 @@ def chat_fn(message, history, user_tz):
234
 
235
 
236
  # -------------------
237
- # THEME & STYLES
238
  # -------------------
239
  theme = gr.themes.Soft(
240
  primary_hue="teal",
241
  neutral_hue="slate",
242
  radius_size=gr.themes.sizes.radius_lg,
243
  ).set(
244
- # Typeface & sizes tuned for executive readability
245
- body_text_size="16px",
246
- heading_text_size="28px",
247
  shadow_drop="0 6px 24px rgba(0,0,0,.06)",
248
  shadow_spread="0 2px 8px rgba(0,0,0,.04)",
249
  )
@@ -259,9 +256,10 @@ custom_css = """
259
  --brand-border: #e2e8f0; /* slate-200 */
260
  }
261
 
262
- /* Page background and layout */
263
  .gradio-container {
264
  background: var(--brand-bg);
 
265
  }
266
 
267
  /* Title */
@@ -270,6 +268,12 @@ h1, .prose h1 {
270
  font-weight: 700;
271
  letter-spacing: -0.01em;
272
  margin-bottom: 0.25rem !important;
 
 
 
 
 
 
273
  }
274
 
275
  /* Status badge wrapper */
@@ -300,19 +304,14 @@ h1, .prose h1 {
300
  margin: .25rem 0 1rem 0;
301
  }
302
 
303
- /* Card polishing */
304
  .block, .gr-box, .gr-panel, .gr-group, .gr-form, .gradio-container .form {
305
  border-radius: 16px !important;
306
  }
307
 
308
- /* Chat area spacing */
309
- #chat-root .wrap {
310
- padding: 0 !important;
311
- }
312
-
313
- /* Chat bubbles (subtle) */
314
  .message.user {
315
- background: #f8fafc !important; /* slate-50 */
316
  }
317
  .message.bot {
318
  background: #ffffff !important;
@@ -396,3 +395,4 @@ if __name__ == "__main__":
396
  demo.launch()
397
 
398
 
 
 
234
 
235
 
236
  # -------------------
237
+ # THEME & STYLES (compatible with broader Gradio versions)
238
  # -------------------
239
  theme = gr.themes.Soft(
240
  primary_hue="teal",
241
  neutral_hue="slate",
242
  radius_size=gr.themes.sizes.radius_lg,
243
  ).set(
 
 
 
244
  shadow_drop="0 6px 24px rgba(0,0,0,.06)",
245
  shadow_spread="0 2px 8px rgba(0,0,0,.04)",
246
  )
 
256
  --brand-border: #e2e8f0; /* slate-200 */
257
  }
258
 
259
+ /* Page background */
260
  .gradio-container {
261
  background: var(--brand-bg);
262
+ color: var(--brand-text);
263
  }
264
 
265
  /* Title */
 
268
  font-weight: 700;
269
  letter-spacing: -0.01em;
270
  margin-bottom: 0.25rem !important;
271
+ font-size: 28px !important; /* set via CSS for version compatibility */
272
+ }
273
+
274
+ /* Chat body text */
275
+ .message {
276
+ font-size: 16px !important;
277
  }
278
 
279
  /* Status badge wrapper */
 
304
  margin: .25rem 0 1rem 0;
305
  }
306
 
307
+ /* Card rounding */
308
  .block, .gr-box, .gr-panel, .gr-group, .gr-form, .gradio-container .form {
309
  border-radius: 16px !important;
310
  }
311
 
312
+ /* Chat bubbles */
 
 
 
 
 
313
  .message.user {
314
+ background: #f8fafc !important;
315
  }
316
  .message.bot {
317
  background: #ffffff !important;
 
395
  demo.launch()
396
 
397
 
398
+