Upload folder using huggingface_hub
Browse files- deep_research.py +112 -16
deep_research.py
CHANGED
@@ -413,19 +413,42 @@ custom_css = """
|
|
413 |
font-style: italic !important;
|
414 |
}
|
415 |
|
416 |
-
/* Dark theme styles for text inputs */
|
417 |
.gradio-container.dark input[type="text"],
|
418 |
-
.gradio-container.dark textarea
|
|
|
|
|
|
|
|
|
419 |
background-color: #4b5563 !important;
|
420 |
border: 2px solid #6b7280 !important;
|
421 |
color: #f9fafb !important;
|
422 |
}
|
423 |
|
424 |
.gradio-container.dark input[type="text"]::placeholder,
|
425 |
-
.gradio-container.dark textarea::placeholder
|
|
|
|
|
|
|
|
|
426 |
color: #9ca3af !important;
|
427 |
}
|
428 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
429 |
/* Simple button styling with good contrast */
|
430 |
.gradio-container button {
|
431 |
border-radius: 8px !important;
|
@@ -481,23 +504,46 @@ button[variant="secondary"]:hover {
|
|
481 |
font-weight: 600 !important;
|
482 |
}
|
483 |
|
484 |
-
/* Dark theme specific styles for clarification section */
|
485 |
-
.gradio-container.dark .clarification-section
|
|
|
|
|
486 |
background-color: #374151 !important;
|
487 |
border-color: #4b5563 !important;
|
488 |
color: #ffffff !important;
|
489 |
}
|
490 |
|
491 |
-
.gradio-container.dark .clarification-section
|
|
|
|
|
492 |
color: #ffffff !important;
|
493 |
}
|
494 |
|
495 |
.gradio-container.dark .clarification-section h1,
|
496 |
.gradio-container.dark .clarification-section h2,
|
497 |
-
.gradio-container.dark .clarification-section h3
|
|
|
|
|
|
|
|
|
|
|
|
|
498 |
color: #ffffff !important;
|
499 |
}
|
500 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
501 |
/* Clean answer box - Light theme */
|
502 |
.answer-textbox {
|
503 |
background-color: #ffffff !important;
|
@@ -547,31 +593,64 @@ button[variant="secondary"]:hover {
|
|
547 |
opacity: 0.9 !important;
|
548 |
}
|
549 |
|
550 |
-
/* Dark theme styles for answer box */
|
551 |
-
.gradio-container.dark .answer-textbox
|
|
|
|
|
552 |
background-color: #4b5563 !important;
|
553 |
border: 2px solid #6b7280 !important;
|
554 |
color: #d1d5db !important;
|
555 |
}
|
556 |
|
557 |
-
.gradio-container.dark .answer-textbox textarea
|
|
|
|
|
558 |
background-color: #4b5563 !important;
|
559 |
color: #f9fafb !important;
|
560 |
border: 2px solid #6b7280 !important;
|
561 |
}
|
562 |
|
563 |
-
.gradio-container.dark .answer-textbox textarea::placeholder
|
|
|
|
|
564 |
color: #9ca3af !important;
|
565 |
}
|
566 |
|
567 |
-
.gradio-container.dark textarea
|
|
|
|
|
568 |
color: #f9fafb !important;
|
569 |
}
|
570 |
|
571 |
-
.gradio-container.dark .answer-textbox::placeholder
|
|
|
|
|
572 |
color: #9ca3af !important;
|
573 |
}
|
574 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
575 |
/* Theme-adaptive results display - Light theme */
|
576 |
.results-display {
|
577 |
border: 2px solid #e5e7eb !important;
|
@@ -588,17 +667,34 @@ button[variant="secondary"]:hover {
|
|
588 |
color: #374151 !important;
|
589 |
}
|
590 |
|
591 |
-
/* Dark theme specific styles */
|
592 |
-
.gradio-container.dark .results-display
|
|
|
|
|
593 |
background-color: #374151 !important;
|
594 |
border-color: #4b5563 !important;
|
595 |
color: #ffffff !important;
|
596 |
}
|
597 |
|
598 |
-
.gradio-container.dark .results-display
|
|
|
|
|
599 |
color: #ffffff !important;
|
600 |
}
|
601 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
602 |
/* Style links in results display for visibility */
|
603 |
.results-display a {
|
604 |
color: #60a5fa !important;
|
|
|
413 |
font-style: italic !important;
|
414 |
}
|
415 |
|
416 |
+
/* Dark theme styles for text inputs - Multiple selectors for compatibility */
|
417 |
.gradio-container.dark input[type="text"],
|
418 |
+
.gradio-container.dark textarea,
|
419 |
+
[data-testid="container"].dark input[type="text"],
|
420 |
+
[data-testid="container"].dark textarea,
|
421 |
+
.dark input[type="text"],
|
422 |
+
.dark textarea {
|
423 |
background-color: #4b5563 !important;
|
424 |
border: 2px solid #6b7280 !important;
|
425 |
color: #f9fafb !important;
|
426 |
}
|
427 |
|
428 |
.gradio-container.dark input[type="text"]::placeholder,
|
429 |
+
.gradio-container.dark textarea::placeholder,
|
430 |
+
[data-testid="container"].dark input[type="text"]::placeholder,
|
431 |
+
[data-testid="container"].dark textarea::placeholder,
|
432 |
+
.dark input[type="text"]::placeholder,
|
433 |
+
.dark textarea::placeholder {
|
434 |
color: #9ca3af !important;
|
435 |
}
|
436 |
|
437 |
+
/* Additional dark theme detection via media query */
|
438 |
+
@media (prefers-color-scheme: dark) {
|
439 |
+
.gradio-container input[type="text"],
|
440 |
+
.gradio-container textarea {
|
441 |
+
background-color: #4b5563 !important;
|
442 |
+
border: 2px solid #6b7280 !important;
|
443 |
+
color: #f9fafb !important;
|
444 |
+
}
|
445 |
+
|
446 |
+
.gradio-container input[type="text"]::placeholder,
|
447 |
+
.gradio-container textarea::placeholder {
|
448 |
+
color: #9ca3af !important;
|
449 |
+
}
|
450 |
+
}
|
451 |
+
|
452 |
/* Simple button styling with good contrast */
|
453 |
.gradio-container button {
|
454 |
border-radius: 8px !important;
|
|
|
504 |
font-weight: 600 !important;
|
505 |
}
|
506 |
|
507 |
+
/* Dark theme specific styles for clarification section - Multiple selectors */
|
508 |
+
.gradio-container.dark .clarification-section,
|
509 |
+
[data-testid="container"].dark .clarification-section,
|
510 |
+
.dark .clarification-section {
|
511 |
background-color: #374151 !important;
|
512 |
border-color: #4b5563 !important;
|
513 |
color: #ffffff !important;
|
514 |
}
|
515 |
|
516 |
+
.gradio-container.dark .clarification-section *,
|
517 |
+
[data-testid="container"].dark .clarification-section *,
|
518 |
+
.dark .clarification-section * {
|
519 |
color: #ffffff !important;
|
520 |
}
|
521 |
|
522 |
.gradio-container.dark .clarification-section h1,
|
523 |
.gradio-container.dark .clarification-section h2,
|
524 |
+
.gradio-container.dark .clarification-section h3,
|
525 |
+
[data-testid="container"].dark .clarification-section h1,
|
526 |
+
[data-testid="container"].dark .clarification-section h2,
|
527 |
+
[data-testid="container"].dark .clarification-section h3,
|
528 |
+
.dark .clarification-section h1,
|
529 |
+
.dark .clarification-section h2,
|
530 |
+
.dark .clarification-section h3 {
|
531 |
color: #ffffff !important;
|
532 |
}
|
533 |
|
534 |
+
/* Additional dark theme detection for clarification section via media query */
|
535 |
+
@media (prefers-color-scheme: dark) {
|
536 |
+
.clarification-section {
|
537 |
+
background-color: #374151 !important;
|
538 |
+
border-color: #4b5563 !important;
|
539 |
+
color: #ffffff !important;
|
540 |
+
}
|
541 |
+
|
542 |
+
.clarification-section * {
|
543 |
+
color: #ffffff !important;
|
544 |
+
}
|
545 |
+
}
|
546 |
+
|
547 |
/* Clean answer box - Light theme */
|
548 |
.answer-textbox {
|
549 |
background-color: #ffffff !important;
|
|
|
593 |
opacity: 0.9 !important;
|
594 |
}
|
595 |
|
596 |
+
/* Dark theme styles for answer box - Multiple selectors for compatibility */
|
597 |
+
.gradio-container.dark .answer-textbox,
|
598 |
+
[data-testid="container"].dark .answer-textbox,
|
599 |
+
.dark .answer-textbox {
|
600 |
background-color: #4b5563 !important;
|
601 |
border: 2px solid #6b7280 !important;
|
602 |
color: #d1d5db !important;
|
603 |
}
|
604 |
|
605 |
+
.gradio-container.dark .answer-textbox textarea,
|
606 |
+
[data-testid="container"].dark .answer-textbox textarea,
|
607 |
+
.dark .answer-textbox textarea {
|
608 |
background-color: #4b5563 !important;
|
609 |
color: #f9fafb !important;
|
610 |
border: 2px solid #6b7280 !important;
|
611 |
}
|
612 |
|
613 |
+
.gradio-container.dark .answer-textbox textarea::placeholder,
|
614 |
+
[data-testid="container"].dark .answer-textbox textarea::placeholder,
|
615 |
+
.dark .answer-textbox textarea::placeholder {
|
616 |
color: #9ca3af !important;
|
617 |
}
|
618 |
|
619 |
+
.gradio-container.dark textarea,
|
620 |
+
[data-testid="container"].dark textarea,
|
621 |
+
.dark textarea {
|
622 |
color: #f9fafb !important;
|
623 |
}
|
624 |
|
625 |
+
.gradio-container.dark .answer-textbox::placeholder,
|
626 |
+
[data-testid="container"].dark .answer-textbox::placeholder,
|
627 |
+
.dark .answer-textbox::placeholder {
|
628 |
color: #9ca3af !important;
|
629 |
}
|
630 |
|
631 |
+
/* Additional dark theme detection for answer box via media query */
|
632 |
+
@media (prefers-color-scheme: dark) {
|
633 |
+
.answer-textbox {
|
634 |
+
background-color: #4b5563 !important;
|
635 |
+
border: 2px solid #6b7280 !important;
|
636 |
+
color: #d1d5db !important;
|
637 |
+
}
|
638 |
+
|
639 |
+
.answer-textbox textarea {
|
640 |
+
background-color: #4b5563 !important;
|
641 |
+
color: #f9fafb !important;
|
642 |
+
border: 2px solid #6b7280 !important;
|
643 |
+
}
|
644 |
+
|
645 |
+
.answer-textbox textarea::placeholder {
|
646 |
+
color: #9ca3af !important;
|
647 |
+
}
|
648 |
+
|
649 |
+
.gradio-container textarea {
|
650 |
+
color: #f9fafb !important;
|
651 |
+
}
|
652 |
+
}
|
653 |
+
|
654 |
/* Theme-adaptive results display - Light theme */
|
655 |
.results-display {
|
656 |
border: 2px solid #e5e7eb !important;
|
|
|
667 |
color: #374151 !important;
|
668 |
}
|
669 |
|
670 |
+
/* Dark theme specific styles for results display - Multiple selectors */
|
671 |
+
.gradio-container.dark .results-display,
|
672 |
+
[data-testid="container"].dark .results-display,
|
673 |
+
.dark .results-display {
|
674 |
background-color: #374151 !important;
|
675 |
border-color: #4b5563 !important;
|
676 |
color: #ffffff !important;
|
677 |
}
|
678 |
|
679 |
+
.gradio-container.dark .results-display *,
|
680 |
+
[data-testid="container"].dark .results-display *,
|
681 |
+
.dark .results-display * {
|
682 |
color: #ffffff !important;
|
683 |
}
|
684 |
|
685 |
+
/* Additional dark theme detection for results display via media query */
|
686 |
+
@media (prefers-color-scheme: dark) {
|
687 |
+
.results-display {
|
688 |
+
background-color: #374151 !important;
|
689 |
+
border-color: #4b5563 !important;
|
690 |
+
color: #ffffff !important;
|
691 |
+
}
|
692 |
+
|
693 |
+
.results-display * {
|
694 |
+
color: #ffffff !important;
|
695 |
+
}
|
696 |
+
}
|
697 |
+
|
698 |
/* Style links in results display for visibility */
|
699 |
.results-display a {
|
700 |
color: #60a5fa !important;
|