Nischal Subedi commited on
Commit
ba2b925
·
1 Parent(s): 5017cba
Files changed (1) hide show
  1. app.py +11 -23
app.py CHANGED
@@ -244,7 +244,6 @@ Answer:"""
244
 
245
 
246
 
247
- import gradio as gr
248
 
249
  def gradio_interface(self):
250
  def query_interface_wrapper(api_key: str, query: str, state: str) -> str:
@@ -318,7 +317,7 @@ Answer:"""
318
  body, html {
319
  background-color: var(--background-secondary) !important;
320
  color: var(--text-primary) !important;
321
- transition: none !important; /* Disable transitions to prevent theme switching */
322
  }
323
  .gradio-container {
324
  max-width: 900px !important;
@@ -333,7 +332,7 @@ Answer:"""
333
  background-color: var(--background-primary) !important;
334
  }
335
  .app-header-wrapper {
336
- background: linear-gradient(145deg, var(--background-primary) 0%, var(--background-secondary) 100%) !important;
337
  border: 2px solid var(--border-color) !important;
338
  border-radius: 16px !important;
339
  padding: 2.5rem 1.5rem !important;
@@ -344,18 +343,6 @@ Answer:"""
344
  text-align: center !important;
345
  color: var(--text-primary) !important;
346
  }
347
- .app-header-wrapper::before {
348
- content: '';
349
- position: absolute;
350
- top: 0;
351
- left: 0;
352
- width: 100%;
353
- height: 100%;
354
- background: radial-gradient(circle at top left, rgba(255,140,0,0.3) 0%, transparent 60%), radial-gradient(circle at bottom right, rgba(255,140,0,0.3) 0%, transparent 60%);
355
- z-index: 0;
356
- opacity: 0.8;
357
- pointer-events: none;
358
- }
359
  .app-header-logo {
360
  font-size: 8.5rem !important;
361
  margin-bottom: 0.75rem !important;
@@ -382,6 +369,7 @@ Answer:"""
382
  z-index: 1;
383
  display: inline-block;
384
  max-width: 100%;
 
385
  }
386
  .app-header-tagline {
387
  font-size: 1.25rem !important;
@@ -392,6 +380,7 @@ Answer:"""
392
  display: inline-block;
393
  position: relative;
394
  z-index: 1;
 
395
  }
396
  .main-dashboard-container {
397
  display: flex !important;
@@ -421,7 +410,7 @@ Answer:"""
421
  background-color: transparent !important;
422
  }
423
  .section-title-gradient-bar {
424
- background-color: var(--background-secondary) !important;
425
  padding: 1.25rem 1.75rem !important;
426
  border-top-left-radius: 10px !important;
427
  border-top-right-radius: 10px !important;
@@ -438,11 +427,12 @@ Answer:"""
438
  color: var(--text-primary) !important;
439
  margin: 0 !important;
440
  padding-bottom: 0 !important;
441
- border-bottom: Gtk-2px solid var(--border-color) !important;
442
  line-height: 1.1 !important;
443
  display: inline-block !important;
444
  text-align: center !important;
445
  letter-spacing: -0.01em !important;
 
446
  }
447
  .dashboard-card-content-area {
448
  padding: 0 1.75rem 1.75rem 1.75rem !important;
@@ -540,13 +530,13 @@ Answer:"""
540
  }
541
  .gradio-radio input[type="radio"]:checked + label {
542
  background-color: var(--primary-color) !important;
543
- color: var(--text-primary) !important;
544
  border-color: var(--primary-hover) !important;
545
  box-shadow: var(--shadow-md) !important;
546
  transform: translateY(-1px) !important;
547
  }
548
  .gradio-radio input[type="radio"]:checked + label span.text-lg {
549
- color: var(--text-primary) !important;
550
  }
551
  .gradio-radio .gr-form {
552
  padding: 0 !important;
@@ -748,7 +738,7 @@ Answer:"""
748
  display: none !important;
749
  }
750
  .app-footer-wrapper {
751
- background: linear-gradient(145deg, var(--background-primary) 0%, var(--background-secondary) 100%) !important;
752
  border: 2px solid var(--border-color) !important;
753
  border-radius: 12px !important;
754
  padding: 1.75rem !important;
@@ -801,8 +791,6 @@ Answer:"""
801
  .gradio-button {
802
  width: 100% !important;
803
  }
804
- .dashboard-card-section {
805
- }
806
  .section-title-gradient-bar {
807
  padding: 0.1rem 1rem !important;
808
  }
@@ -912,7 +900,7 @@ Answer:"""
912
  <style>
913
  .custom-link {{
914
  font-weight: bold !important;
915
- color: orange !important;
916
  text-decoration: underline;
917
  }}
918
  </style>
 
244
 
245
 
246
 
 
247
 
248
  def gradio_interface(self):
249
  def query_interface_wrapper(api_key: str, query: str, state: str) -> str:
 
317
  body, html {
318
  background-color: var(--background-secondary) !important;
319
  color: var(--text-primary) !important;
320
+ transition: none !important;
321
  }
322
  .gradio-container {
323
  max-width: 900px !important;
 
332
  background-color: var(--background-primary) !important;
333
  }
334
  .app-header-wrapper {
335
+ background: var(--background-primary) !important; /* Changed to solid background for better blending */
336
  border: 2px solid var(--border-color) !important;
337
  border-radius: 16px !important;
338
  padding: 2.5rem 1.5rem !important;
 
343
  text-align: center !important;
344
  color: var(--text-primary) !important;
345
  }
 
 
 
 
 
 
 
 
 
 
 
 
346
  .app-header-logo {
347
  font-size: 8.5rem !important;
348
  margin-bottom: 0.75rem !important;
 
369
  z-index: 1;
370
  display: inline-block;
371
  max-width: 100%;
372
+ text-shadow: 0 1px 2px rgba(0,0,0,0.05) !important; /* Subtle shadow for better blending */
373
  }
374
  .app-header-tagline {
375
  font-size: 1.25rem !important;
 
380
  display: inline-block;
381
  position: relative;
382
  z-index: 1;
383
+ text-shadow: 0 1px 2px rgba(0,0,0,0.05) !important; /* Subtle shadow for better blending */
384
  }
385
  .main-dashboard-container {
386
  display: flex !important;
 
410
  background-color: transparent !important;
411
  }
412
  .section-title-gradient-bar {
413
+ background-color: var(--background-primary) !important; /* Changed to solid background for better blending */
414
  padding: 1.25rem 1.75rem !important;
415
  border-top-left-radius: 10px !important;
416
  border-top-right-radius: 10px !important;
 
427
  color: var(--text-primary) !important;
428
  margin: 0 !important;
429
  padding-bottom: 0 !important;
430
+ border-bottom: 2px solid var(--border-color) !important;
431
  line-height: 1.1 !important;
432
  display: inline-block !important;
433
  text-align: center !important;
434
  letter-spacing: -0.01em !important;
435
+ text-shadow: 0 1px 2px rgba(0,0,0,0.05) !important; /* Subtle shadow for better blending */
436
  }
437
  .dashboard-card-content-area {
438
  padding: 0 1.75rem 1.75rem 1.75rem !important;
 
530
  }
531
  .gradio-radio input[type="radio"]:checked + label {
532
  background-color: var(--primary-color) !important;
533
+ color: white !important; /* Changed to white for better contrast */
534
  border-color: var(--primary-hover) !important;
535
  box-shadow: var(--shadow-md) !important;
536
  transform: translateY(-1px) !important;
537
  }
538
  .gradio-radio input[type="radio"]:checked + label span.text-lg {
539
+ color: white !important; /* Changed to white for better contrast */
540
  }
541
  .gradio-radio .gr-form {
542
  padding: 0 !important;
 
738
  display: none !important;
739
  }
740
  .app-footer-wrapper {
741
+ background: var(--background-primary) !important; /* Changed to solid background for consistency */
742
  border: 2px solid var(--border-color) !important;
743
  border-radius: 12px !important;
744
  padding: 1.75rem !important;
 
791
  .gradio-button {
792
  width: 100% !important;
793
  }
 
 
794
  .section-title-gradient-bar {
795
  padding: 0.1rem 1rem !important;
796
  }
 
900
  <style>
901
  .custom-link {{
902
  font-weight: bold !important;
903
+ color: var(--primary-color) !important;
904
  text-decoration: underline;
905
  }}
906
  </style>