Upload folder using huggingface_hub
Browse files- deep_research.py +67 -29
deep_research.py
CHANGED
@@ -384,15 +384,15 @@ custom_css = """
|
|
384 |
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
|
385 |
}
|
386 |
|
387 |
-
/*
|
388 |
.gradio-container input[type="text"],
|
389 |
.gradio-container textarea {
|
390 |
-
background-color: #
|
391 |
-
border: 2px solid #
|
392 |
border-radius: 8px !important;
|
393 |
padding: 12px !important;
|
394 |
font-size: 14px !important;
|
395 |
-
color: #
|
396 |
font-weight: 400 !important;
|
397 |
line-height: 1.5 !important;
|
398 |
transition: border-color 0.2s ease !important;
|
@@ -408,11 +408,24 @@ custom_css = """
|
|
408 |
/* Placeholder styling for all inputs */
|
409 |
.gradio-container input[type="text"]::placeholder,
|
410 |
.gradio-container textarea::placeholder {
|
411 |
-
color: #
|
412 |
opacity: 0.8 !important;
|
413 |
font-style: italic !important;
|
414 |
}
|
415 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
416 |
/* Simple button styling with good contrast */
|
417 |
.gradio-container button {
|
418 |
border-radius: 8px !important;
|
@@ -447,24 +460,24 @@ button[variant="secondary"]:hover {
|
|
447 |
border-color: #9ca3af !important;
|
448 |
}
|
449 |
|
450 |
-
/* Theme-adaptive section styling */
|
451 |
.clarification-section {
|
452 |
-
border: 2px solid
|
453 |
border-radius: 12px !important;
|
454 |
padding: 20px !important;
|
455 |
margin: 16px 0 !important;
|
456 |
-
background-color:
|
457 |
-
color:
|
458 |
}
|
459 |
|
460 |
.clarification-section * {
|
461 |
-
color:
|
462 |
}
|
463 |
|
464 |
.clarification-section h1,
|
465 |
.clarification-section h2,
|
466 |
.clarification-section h3 {
|
467 |
-
color:
|
468 |
font-weight: 600 !important;
|
469 |
}
|
470 |
|
@@ -485,13 +498,13 @@ button[variant="secondary"]:hover {
|
|
485 |
color: #ffffff !important;
|
486 |
}
|
487 |
|
488 |
-
/* Clean answer box */
|
489 |
.answer-textbox {
|
490 |
-
background-color: #
|
491 |
-
border: 2px solid #
|
492 |
border-radius: 8px !important;
|
493 |
padding: 12px !important;
|
494 |
-
color: #
|
495 |
line-height: 1.5 !important;
|
496 |
}
|
497 |
|
@@ -502,9 +515,9 @@ button[variant="secondary"]:hover {
|
|
502 |
|
503 |
/* Target the actual textarea element inside answer-textbox */
|
504 |
.answer-textbox textarea {
|
505 |
-
background-color: #
|
506 |
-
color: #
|
507 |
-
border: 2px solid #
|
508 |
border-radius: 8px !important;
|
509 |
padding: 12px !important;
|
510 |
font-size: 14px !important;
|
@@ -517,37 +530,62 @@ button[variant="secondary"]:hover {
|
|
517 |
box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2) !important;
|
518 |
}
|
519 |
|
520 |
-
/*
|
521 |
.answer-textbox textarea::placeholder {
|
522 |
-
color: #
|
523 |
opacity: 0.8 !important;
|
524 |
font-style: italic !important;
|
525 |
}
|
526 |
|
527 |
-
/* Make all textareas have proper
|
528 |
.gradio-container textarea {
|
529 |
-
color: #
|
530 |
}
|
531 |
|
532 |
.answer-textbox::placeholder {
|
533 |
-
color: #
|
534 |
opacity: 0.9 !important;
|
535 |
}
|
536 |
|
537 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
538 |
.results-display {
|
539 |
-
border: 2px solid
|
540 |
border-radius: 8px !important;
|
541 |
padding: 16px !important;
|
542 |
margin: 12px 0 !important;
|
543 |
line-height: 1.6 !important;
|
544 |
-
background-color:
|
545 |
-
color:
|
546 |
}
|
547 |
|
548 |
-
/* Make sure markdown in results display
|
549 |
.results-display * {
|
550 |
-
color:
|
551 |
}
|
552 |
|
553 |
/* Dark theme specific styles */
|
|
|
384 |
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
|
385 |
}
|
386 |
|
387 |
+
/* Light theme styles for text inputs */
|
388 |
.gradio-container input[type="text"],
|
389 |
.gradio-container textarea {
|
390 |
+
background-color: #ffffff !important;
|
391 |
+
border: 2px solid #d1d5db !important;
|
392 |
border-radius: 8px !important;
|
393 |
padding: 12px !important;
|
394 |
font-size: 14px !important;
|
395 |
+
color: #374151 !important;
|
396 |
font-weight: 400 !important;
|
397 |
line-height: 1.5 !important;
|
398 |
transition: border-color 0.2s ease !important;
|
|
|
408 |
/* Placeholder styling for all inputs */
|
409 |
.gradio-container input[type="text"]::placeholder,
|
410 |
.gradio-container textarea::placeholder {
|
411 |
+
color: #6b7280 !important;
|
412 |
opacity: 0.8 !important;
|
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;
|
|
|
460 |
border-color: #9ca3af !important;
|
461 |
}
|
462 |
|
463 |
+
/* Theme-adaptive section styling - Light theme */
|
464 |
.clarification-section {
|
465 |
+
border: 2px solid #e5e7eb !important;
|
466 |
border-radius: 12px !important;
|
467 |
padding: 20px !important;
|
468 |
margin: 16px 0 !important;
|
469 |
+
background-color: #ffffff !important;
|
470 |
+
color: #374151 !important;
|
471 |
}
|
472 |
|
473 |
.clarification-section * {
|
474 |
+
color: #374151 !important;
|
475 |
}
|
476 |
|
477 |
.clarification-section h1,
|
478 |
.clarification-section h2,
|
479 |
.clarification-section h3 {
|
480 |
+
color: #374151 !important;
|
481 |
font-weight: 600 !important;
|
482 |
}
|
483 |
|
|
|
498 |
color: #ffffff !important;
|
499 |
}
|
500 |
|
501 |
+
/* Clean answer box - Light theme */
|
502 |
.answer-textbox {
|
503 |
+
background-color: #ffffff !important;
|
504 |
+
border: 2px solid #d1d5db !important;
|
505 |
border-radius: 8px !important;
|
506 |
padding: 12px !important;
|
507 |
+
color: #374151 !important;
|
508 |
line-height: 1.5 !important;
|
509 |
}
|
510 |
|
|
|
515 |
|
516 |
/* Target the actual textarea element inside answer-textbox */
|
517 |
.answer-textbox textarea {
|
518 |
+
background-color: #ffffff !important;
|
519 |
+
color: #374151 !important;
|
520 |
+
border: 2px solid #d1d5db !important;
|
521 |
border-radius: 8px !important;
|
522 |
padding: 12px !important;
|
523 |
font-size: 14px !important;
|
|
|
530 |
box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2) !important;
|
531 |
}
|
532 |
|
533 |
+
/* Light theme placeholder text */
|
534 |
.answer-textbox textarea::placeholder {
|
535 |
+
color: #6b7280 !important;
|
536 |
opacity: 0.8 !important;
|
537 |
font-style: italic !important;
|
538 |
}
|
539 |
|
540 |
+
/* Make all textareas have proper text color for light theme */
|
541 |
.gradio-container textarea {
|
542 |
+
color: #374151 !important;
|
543 |
}
|
544 |
|
545 |
.answer-textbox::placeholder {
|
546 |
+
color: #6b7280 !important;
|
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;
|
578 |
border-radius: 8px !important;
|
579 |
padding: 16px !important;
|
580 |
margin: 12px 0 !important;
|
581 |
line-height: 1.6 !important;
|
582 |
+
background-color: #ffffff !important;
|
583 |
+
color: #374151 !important;
|
584 |
}
|
585 |
|
586 |
+
/* Make sure markdown in results display uses proper colors for light theme */
|
587 |
.results-display * {
|
588 |
+
color: #374151 !important;
|
589 |
}
|
590 |
|
591 |
/* Dark theme specific styles */
|