Crackershoot commited on
Commit
ff75bc9
·
verified ·
1 Parent(s): 8d811fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +67 -15
app.py CHANGED
@@ -305,20 +305,24 @@ demo_css = """
305
  font-size: 13px !important;
306
  }
307
 
 
 
 
 
 
 
308
  .main-container {
309
  max-width: 1250px;
310
  margin: auto;
311
  }
312
-
313
  .header-card {
314
- background: #020E28;
315
  border-radius: 24px;
316
  padding: 26px;
317
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
318
  border: 1px solid #e5e7eb;
319
  margin-bottom: 20px;
320
  }
321
-
322
  .sidebar-card {
323
  background: rgba(255, 255, 255, 0.96);
324
  border-radius: 24px;
@@ -327,7 +331,41 @@ demo_css = """
327
  border: 1px solid #e5e7eb;
328
  height: 100%;
329
  }
330
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
331
  .status-box {
332
  background: #f8fafc;
333
  border: 1px solid #e5e7eb;
@@ -337,17 +375,31 @@ demo_css = """
337
  color: #374151;
338
  line-height: 1.6;
339
  }
340
-
341
  .small-note {
342
  font-size: 13px;
343
  color: #6b7280;
344
  line-height: 1.55;
345
  }
346
-
 
 
 
 
 
 
 
 
 
 
347
  #question_box textarea {
348
  border-radius: 16px !important;
349
  }
350
-
 
 
 
 
 
351
  .primary-action {
352
  border-radius: 14px !important;
353
  }
@@ -357,8 +409,7 @@ demo_css = """
357
  """
358
 
359
  # Create the Gradio interface using `gr.Blocks` for a custom layout.
360
- with gr.Blocks(
361
- title="# 🤖 Dox the Data Professional's Advisor 🤖"#,
362
  #theme=theme,
363
  #css=demo_css,
364
  #fill_width=True
@@ -375,6 +426,7 @@ with gr.Blocks(
375
  <img src="{DOX_LOGO}" class="logo-img" alt="DOX Logo">
376
  """
377
  )
 
378
  with gr.Column(scale=5):
379
  gr.HTML(
380
  """
@@ -401,12 +453,12 @@ with gr.Blocks(
401
  """
402
  ### 🧠 Dox is an expert in the following topics:
403
 
404
- -1️⃣ **Hugging Face**
405
- -2️⃣ **AI Agents**
406
- -3️⃣ **SQL with AI**
407
- -4️⃣ **Azure CLI**
408
- -5️⃣ **Power BI**
409
- -6️⃣ **Python**
410
  """
411
  )
412
 
 
305
  font-size: 13px !important;
306
  }
307
 
308
+ body {
309
+ background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 45%, #f8fafc 100%);
310
+ }
311
+ .gradio-container {
312
+ font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
313
+ }
314
  .main-container {
315
  max-width: 1250px;
316
  margin: auto;
317
  }
 
318
  .header-card {
319
+ background: rgba(255, 255, 255, 0.95);
320
  border-radius: 24px;
321
  padding: 26px;
322
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
323
  border: 1px solid #e5e7eb;
324
  margin-bottom: 20px;
325
  }
 
326
  .sidebar-card {
327
  background: rgba(255, 255, 255, 0.96);
328
  border-radius: 24px;
 
331
  border: 1px solid #e5e7eb;
332
  height: 100%;
333
  }
334
+ .chat-card {
335
+ background: rgba(255, 255, 255, 0.96);
336
+ border-radius: 24px;
337
+ padding: 22px;
338
+ box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
339
+ border: 1px solid #e5e7eb;
340
+ }
341
+ .logo-img {
342
+ max-width: 175px;
343
+ margin-bottom: 8px;
344
+ }
345
+ .title-text {
346
+ font-size: 32px;
347
+ font-weight: 850;
348
+ color: #111827;
349
+ margin-bottom: 8px;
350
+ letter-spacing: -0.03em;
351
+ }
352
+ .subtitle-text {
353
+ font-size: 16px;
354
+ color: #4b5563;
355
+ line-height: 1.65;
356
+ max-width: 850px;
357
+ }
358
+ .badge {
359
+ display: inline-block;
360
+ background: #eef2ff;
361
+ color: #3730a3;
362
+ padding: 7px 13px;
363
+ border-radius: 999px;
364
+ font-size: 13px;
365
+ font-weight: 650;
366
+ margin-right: 7px;
367
+ margin-bottom: 8px;
368
+ }
369
  .status-box {
370
  background: #f8fafc;
371
  border: 1px solid #e5e7eb;
 
375
  color: #374151;
376
  line-height: 1.6;
377
  }
 
378
  .small-note {
379
  font-size: 13px;
380
  color: #6b7280;
381
  line-height: 1.55;
382
  }
383
+ .footer-note {
384
+ font-size: 13px;
385
+ color: #6b7280;
386
+ text-align: center;
387
+ margin-top: 18px;
388
+ }
389
+ #chatbot {
390
+ min-height: 540px;
391
+ border-radius: 18px;
392
+ border: 1px solid #e5e7eb;
393
+ }
394
  #question_box textarea {
395
  border-radius: 16px !important;
396
  }
397
+ .example-button {
398
+ margin-bottom: 8px !important;
399
+ border-radius: 14px !important;
400
+ white-space: normal !important;
401
+ text-align: left !important;
402
+ }
403
  .primary-action {
404
  border-radius: 14px !important;
405
  }
 
409
  """
410
 
411
  # Create the Gradio interface using `gr.Blocks` for a custom layout.
412
+ with gr.Blocks(title="🤖 Dox the Data Professional's Guide 🤖"#,
 
413
  #theme=theme,
414
  #css=demo_css,
415
  #fill_width=True
 
426
  <img src="{DOX_LOGO}" class="logo-img" alt="DOX Logo">
427
  """
428
  )
429
+
430
  with gr.Column(scale=5):
431
  gr.HTML(
432
  """
 
453
  """
454
  ### 🧠 Dox is an expert in the following topics:
455
 
456
+ - 1️⃣ **Hugging Face**
457
+ - 2️⃣ **AI Agents**
458
+ - 3️⃣ **SQL with AI**
459
+ - 4️⃣ **Azure CLI**
460
+ - 5️⃣ **Power BI**
461
+ - 6️⃣ **Python**
462
  """
463
  )
464