mallocode200 commited on
Commit
362926e
·
verified ·
1 Parent(s): da835d6

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. deep_research.py +67 -13
deep_research.py CHANGED
@@ -352,27 +352,44 @@ button[variant="secondary"]:hover {
352
  border-color: #9ca3af !important;
353
  }
354
 
355
- /* Simple section styling */
356
  .clarification-section {
357
- background-color: #374151 !important;
358
- border: 2px solid #4b5563 !important;
359
  border-radius: 12px !important;
360
  padding: 20px !important;
361
  margin: 16px 0 !important;
362
- color: #ffffff !important;
 
363
  }
364
 
365
  .clarification-section * {
366
- color: #ffffff !important;
367
  }
368
 
369
  .clarification-section h1,
370
  .clarification-section h2,
371
  .clarification-section h3 {
372
- color: #ffffff !important;
373
  font-weight: 600 !important;
374
  }
375
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
376
  /* Clean answer box */
377
  .answer-textbox {
378
  background-color: #4b5563 !important;
@@ -422,19 +439,30 @@ button[variant="secondary"]:hover {
422
  opacity: 0.9 !important;
423
  }
424
 
425
- /* Results display with better contrast */
426
  .results-display {
427
- background-color: #374151 !important;
428
- border: 2px solid #4b5563 !important;
429
  border-radius: 8px !important;
430
  padding: 16px !important;
431
  margin: 12px 0 !important;
432
- color: #ffffff !important;
433
  line-height: 1.6 !important;
 
 
434
  }
435
 
436
- /* Make sure markdown in results display also has white text */
437
  .results-display * {
 
 
 
 
 
 
 
 
 
 
 
438
  color: #ffffff !important;
439
  }
440
 
@@ -471,12 +499,38 @@ button[variant="secondary"]:hover {
471
  font-weight: 500 !important;
472
  }
473
 
474
- /* Simple headers */
475
  h1, h2, h3 {
476
- color: #ffffff !important;
477
  font-weight: 600 !important;
478
  }
479
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
480
  /* Remove unnecessary gradients and shadows for simplicity */
481
  * {
482
  box-shadow: none !important;
 
352
  border-color: #9ca3af !important;
353
  }
354
 
355
+ /* Theme-adaptive section styling */
356
  .clarification-section {
357
+ border: 2px solid var(--border-color-primary, #e5e7eb) !important;
 
358
  border-radius: 12px !important;
359
  padding: 20px !important;
360
  margin: 16px 0 !important;
361
+ background-color: var(--background-fill-secondary, #f8fafc) !important;
362
+ color: var(--body-text-color, #374151) !important;
363
  }
364
 
365
  .clarification-section * {
366
+ color: inherit !important;
367
  }
368
 
369
  .clarification-section h1,
370
  .clarification-section h2,
371
  .clarification-section h3 {
372
+ color: inherit !important;
373
  font-weight: 600 !important;
374
  }
375
 
376
+ /* Dark theme specific styles for clarification section */
377
+ .gradio-container.dark .clarification-section {
378
+ background-color: #374151 !important;
379
+ border-color: #4b5563 !important;
380
+ color: #ffffff !important;
381
+ }
382
+
383
+ .gradio-container.dark .clarification-section * {
384
+ color: #ffffff !important;
385
+ }
386
+
387
+ .gradio-container.dark .clarification-section h1,
388
+ .gradio-container.dark .clarification-section h2,
389
+ .gradio-container.dark .clarification-section h3 {
390
+ color: #ffffff !important;
391
+ }
392
+
393
  /* Clean answer box */
394
  .answer-textbox {
395
  background-color: #4b5563 !important;
 
439
  opacity: 0.9 !important;
440
  }
441
 
442
+ /* Theme-adaptive results display */
443
  .results-display {
444
+ border: 2px solid var(--border-color-primary, #e5e7eb) !important;
 
445
  border-radius: 8px !important;
446
  padding: 16px !important;
447
  margin: 12px 0 !important;
 
448
  line-height: 1.6 !important;
449
+ background-color: var(--background-fill-secondary, #f8fafc) !important;
450
+ color: var(--body-text-color, #374151) !important;
451
  }
452
 
453
+ /* Make sure markdown in results display adapts to theme */
454
  .results-display * {
455
+ color: inherit !important;
456
+ }
457
+
458
+ /* Dark theme specific styles */
459
+ .gradio-container.dark .results-display {
460
+ background-color: #374151 !important;
461
+ border-color: #4b5563 !important;
462
+ color: #ffffff !important;
463
+ }
464
+
465
+ .gradio-container.dark .results-display * {
466
  color: #ffffff !important;
467
  }
468
 
 
499
  font-weight: 500 !important;
500
  }
501
 
502
+ /* Theme-adaptive headers */
503
  h1, h2, h3 {
504
+ color: var(--body-text-color) !important;
505
  font-weight: 600 !important;
506
  }
507
 
508
+ /* Fallback for when CSS variables aren't available */
509
+ @media (prefers-color-scheme: dark) {
510
+ h1, h2, h3 {
511
+ color: #ffffff !important;
512
+ }
513
+ }
514
+
515
+ @media (prefers-color-scheme: light) {
516
+ h1, h2, h3 {
517
+ color: #1f2937 !important;
518
+ }
519
+ }
520
+
521
+ /* Specific overrides for Gradio themes */
522
+ .gradio-container.dark h1,
523
+ .gradio-container.dark h2,
524
+ .gradio-container.dark h3 {
525
+ color: #ffffff !important;
526
+ }
527
+
528
+ .gradio-container.light h1,
529
+ .gradio-container.light h2,
530
+ .gradio-container.light h3 {
531
+ color: #1f2937 !important;
532
+ }
533
+
534
  /* Remove unnecessary gradients and shadows for simplicity */
535
  * {
536
  box-shadow: none !important;