Update app.py
Browse files
app.py
CHANGED
@@ -162,8 +162,8 @@ import gradio as gr
|
|
162 |
# # Custom CSS to match website style
|
163 |
# # Define CSS to match a modern, professional design
|
164 |
# # Define enhanced CSS for the entire layout
|
165 |
-
css_tech_theme = """
|
166 |
-
body {
|
167 |
font-family: 'Roboto', sans-serif;
|
168 |
background-color: #f4f6fa;
|
169 |
color: #333333;
|
@@ -489,7 +489,337 @@ footer p {
|
|
489 |
}
|
490 |
|
491 |
|
492 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
493 |
|
494 |
# Create the Gradio Interface
|
495 |
|
|
|
162 |
# # Custom CSS to match website style
|
163 |
# # Define CSS to match a modern, professional design
|
164 |
# # Define enhanced CSS for the entire layout
|
165 |
+
css_tech_theme = """
|
166 |
+
body {
|
167 |
font-family: 'Roboto', sans-serif;
|
168 |
background-color: #f4f6fa;
|
169 |
color: #333333;
|
|
|
489 |
}
|
490 |
|
491 |
|
492 |
+
|
493 |
+
|
494 |
+
"""
|
495 |
+
# css_tech_theme = """
|
496 |
+
# body {
|
497 |
+
# font-family: 'Roboto', sans-serif;
|
498 |
+
# background-color: #f4f6fa;
|
499 |
+
# color: #333333;
|
500 |
+
# margin: 0;
|
501 |
+
# padding: 0;
|
502 |
+
# }
|
503 |
+
|
504 |
+
# /* Header Styling */
|
505 |
+
# header {
|
506 |
+
# text-align: center;
|
507 |
+
# padding: 60px 20px;
|
508 |
+
# background: linear-gradient(135deg, #6a1b9a, #64b5f6);
|
509 |
+
# color: #ffffff;
|
510 |
+
# border-radius: 12px;
|
511 |
+
# margin-bottom: 30px;
|
512 |
+
# box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
|
513 |
+
# }
|
514 |
+
|
515 |
+
# header h1 {
|
516 |
+
# font-size: 3.5em;
|
517 |
+
# font-weight: bold;
|
518 |
+
# margin-bottom: 10px;
|
519 |
+
# }
|
520 |
+
|
521 |
+
# header h2 {
|
522 |
+
# font-size: 2em;
|
523 |
+
# margin-bottom: 15px;
|
524 |
+
# }
|
525 |
+
|
526 |
+
# header p {
|
527 |
+
# font-size: 1em;
|
528 |
+
# line-height: 1.8;
|
529 |
+
# }
|
530 |
+
|
531 |
+
# .header-buttons {
|
532 |
+
# display: flex;
|
533 |
+
# justify-content: center;
|
534 |
+
# gap: 15px;
|
535 |
+
# margin-top: 20px;
|
536 |
+
# }
|
537 |
+
|
538 |
+
# .header-buttons a {
|
539 |
+
# text-decoration: none;
|
540 |
+
# font-size: 1.5em;
|
541 |
+
# padding: 15px 30px;
|
542 |
+
# border-radius: 30px;
|
543 |
+
# font-weight: bold;
|
544 |
+
# background: #ffffff;
|
545 |
+
# color: #6a1b9a;
|
546 |
+
# transition: transform 0.3s, background 0.3s;
|
547 |
+
# box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
548 |
+
# }
|
549 |
+
|
550 |
+
# .header-buttons a:hover {
|
551 |
+
# background: #64b5f6;
|
552 |
+
# color: #ffffff;
|
553 |
+
# transform: scale(1.05);
|
554 |
+
# }
|
555 |
+
|
556 |
+
# /* Pre-Tabs Section */
|
557 |
+
|
558 |
+
# .pre-tabs {
|
559 |
+
# text-align: center;
|
560 |
+
# padding: 40px 20px;
|
561 |
+
# background: linear-gradient(135deg, #ffffff, #f9fafb);
|
562 |
+
# border-top: 5px solid #64b5f6;
|
563 |
+
# border-bottom: 5px solid #6a1b9a;
|
564 |
+
# }
|
565 |
+
|
566 |
+
# .pre-tabs h2, .post-tabs h2 {
|
567 |
+
# font-size: 3em; /* Increase the size for better visibility */
|
568 |
+
# }
|
569 |
+
|
570 |
+
# .pre-tabs p, .post-tabs p {
|
571 |
+
# font-size: 2.5em; /* Adjust paragraph text size */
|
572 |
+
# }
|
573 |
+
|
574 |
+
# .pre-tabs h2 {
|
575 |
+
# color: #333333;
|
576 |
+
# margin-bottom: 15px;
|
577 |
+
# }
|
578 |
+
|
579 |
+
# .pre-tabs p {
|
580 |
+
# color: #555555;
|
581 |
+
# line-height: 1.8;
|
582 |
+
# }
|
583 |
+
|
584 |
+
# /* Tabs Section */
|
585 |
+
# .tabs {
|
586 |
+
# margin: 0 auto;
|
587 |
+
# padding: 20px;
|
588 |
+
# background: #ffffff;
|
589 |
+
# border-radius: 12px;
|
590 |
+
# box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
591 |
+
# /* max-width: 1300px; /* change 1 */ */
|
592 |
+
# }
|
593 |
+
|
594 |
+
# /* Post-Tabs Section */
|
595 |
+
# .post-tabs {
|
596 |
+
# text-align: center;
|
597 |
+
# padding: 40px 20px;
|
598 |
+
# background: linear-gradient(135deg, #64b5f6, #6a1b9a);
|
599 |
+
# color: #ffffff;
|
600 |
+
# border-radius: 12px;
|
601 |
+
# margin-top: 30px;
|
602 |
+
# }
|
603 |
+
|
604 |
+
# .post-tabs h2 {
|
605 |
+
# font-size: 3.4em;
|
606 |
+
# margin-bottom: 15px;
|
607 |
+
# }
|
608 |
+
|
609 |
+
# .post-tabs p {
|
610 |
+
# font-size: 2em;
|
611 |
+
# line-height: 1.8;
|
612 |
+
# margin-bottom: 20px;
|
613 |
+
# }
|
614 |
+
|
615 |
+
# .post-tabs a {
|
616 |
+
# text-decoration: none;
|
617 |
+
# font-size: 1.1em;
|
618 |
+
# padding: 15px 30px;
|
619 |
+
# border-radius: 30px;
|
620 |
+
# font-weight: bold;
|
621 |
+
# background: #ffffff;
|
622 |
+
# color: #6a1b9a;
|
623 |
+
# transition: transform 0.3s, background 0.3s;
|
624 |
+
# box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
625 |
+
# }
|
626 |
+
|
627 |
+
# .post-tabs a:hover {
|
628 |
+
# background: #6a1b9a;
|
629 |
+
# color: #ffffff;
|
630 |
+
# transform: scale(1.05);
|
631 |
+
# }
|
632 |
+
|
633 |
+
# /* Footer */
|
634 |
+
# footer {
|
635 |
+
# background: linear-gradient(135deg, #6a1b9a, #8e44ad);
|
636 |
+
# color: #ffffff;
|
637 |
+
# text-align: center;
|
638 |
+
# padding: 40px 20px;
|
639 |
+
# margin-top: 30px;
|
640 |
+
# border-radius: 12px;
|
641 |
+
# box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
|
642 |
+
# }
|
643 |
+
|
644 |
+
# footer h2 {
|
645 |
+
# font-size: 1.5em;
|
646 |
+
# margin-bottom: 15px;
|
647 |
+
# }
|
648 |
+
|
649 |
+
# footer p {
|
650 |
+
# font-size: 0.8em;
|
651 |
+
# line-height: 1.6;
|
652 |
+
# margin-bottom: 20px;
|
653 |
+
# }
|
654 |
+
# /* Link Styling */
|
655 |
+
# .social-links {
|
656 |
+
# display: flex;
|
657 |
+
# justify-content: center;
|
658 |
+
# gap: 15px; /* Space between links */
|
659 |
+
# }
|
660 |
+
|
661 |
+
# .social-link {
|
662 |
+
# display: inline-block;
|
663 |
+
# text-decoration: none;
|
664 |
+
# color: #ffffff;
|
665 |
+
# background-color: #6a1b9a; /* Purple button background */
|
666 |
+
# padding: 10px 20px;
|
667 |
+
# border-radius: 30px;
|
668 |
+
# font-size: 16px;
|
669 |
+
# font-weight: bold;
|
670 |
+
# transition: all 0.3s ease;
|
671 |
+
# box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
672 |
+
# }
|
673 |
+
|
674 |
+
# .social-link:hover {
|
675 |
+
# background-color: #8c52d3; /* Darker shade on hover */
|
676 |
+
# box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
|
677 |
+
# transform: translateY(-2px);
|
678 |
+
# }
|
679 |
+
|
680 |
+
# .social-link:active {
|
681 |
+
# transform: translateY(1px);
|
682 |
+
# box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
|
683 |
+
# }
|
684 |
+
|
685 |
+
# /* Submission Section Styling */
|
686 |
+
# /* Submission Section Styling */
|
687 |
+
# .submission-section {
|
688 |
+
# margin: 40px auto;
|
689 |
+
# padding: 30px;
|
690 |
+
# background: linear-gradient(135deg, #ffffff, #f9f9ff);
|
691 |
+
# border-radius: 12px;
|
692 |
+
# box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
693 |
+
# /*max-width: 800px; change 1*/
|
694 |
+
# text-align: center;
|
695 |
+
|
696 |
+
# }
|
697 |
+
# .submission-section h2 {
|
698 |
+
# font-size: 2.5em;
|
699 |
+
# color: #6a1b9a;
|
700 |
+
# margin-bottom: 20px;
|
701 |
+
# font-weight: bold;
|
702 |
+
# }
|
703 |
+
# .submission-section p {
|
704 |
+
# font-size: 1.2em;
|
705 |
+
# color: #333;
|
706 |
+
# margin-bottom: 30px;
|
707 |
+
# }
|
708 |
+
# #submission-fields {
|
709 |
+
# display: flex;
|
710 |
+
# flex-direction: column;
|
711 |
+
# gap: 20px;
|
712 |
+
# align-items: center;
|
713 |
+
# }
|
714 |
+
# #submission-fields input[type="file"],
|
715 |
+
# #submission-fields input[type="text"] {
|
716 |
+
# width: 90%;
|
717 |
+
# max-width: 400px;
|
718 |
+
# padding: 12px 15px;
|
719 |
+
# font-size: 1em;
|
720 |
+
# border: 2px solid #d3bce8;
|
721 |
+
# border-radius: 8px;
|
722 |
+
# box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
|
723 |
+
# transition: border-color 0.3s ease;
|
724 |
+
# }
|
725 |
+
# #submission-fields input[type="file"]:focus,
|
726 |
+
# #submission-fields input[type="text"]:focus {
|
727 |
+
# border-color: #6a1b9a;
|
728 |
+
# outline: none;
|
729 |
+
# box-shadow: 0 0 5px rgba(106, 27, 154, 0.4);
|
730 |
+
# }
|
731 |
+
# #submission-results {
|
732 |
+
# margin-top: 20px;
|
733 |
+
# text-align: center;
|
734 |
+
# }
|
735 |
+
# #submission-buttons {
|
736 |
+
# display: flex;
|
737 |
+
# justify-content: center;
|
738 |
+
# gap: 15px;
|
739 |
+
# margin-top: 20px;
|
740 |
+
# }
|
741 |
+
# #submission-buttons button {
|
742 |
+
# padding: 10px 20px;
|
743 |
+
# font-size: 1em;
|
744 |
+
# color: #ffffff;
|
745 |
+
# background: #6a1b9a;
|
746 |
+
# border: none;
|
747 |
+
# border-radius: 30px;
|
748 |
+
# cursor: pointer;
|
749 |
+
# font-weight: bold;
|
750 |
+
# transition: background 0.3s ease, transform 0.3s ease;
|
751 |
+
# box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
752 |
+
# }
|
753 |
+
# #submission-buttons button:hover {
|
754 |
+
# background: #8c52d3;
|
755 |
+
# transform: scale(1.05);
|
756 |
+
# }
|
757 |
+
# #submission-buttons button:active {
|
758 |
+
# background: #5e1287;
|
759 |
+
# transform: scale(0.98);
|
760 |
+
# }
|
761 |
+
# /* Input Fields Styling */
|
762 |
+
# /* Input Fields Styling */
|
763 |
+
# #submission-fields input[type="file"],
|
764 |
+
# #submission-fields input[type="text"] {
|
765 |
+
# width: 90%;
|
766 |
+
# max-width: 450px;
|
767 |
+
# padding: 12px 15px;
|
768 |
+
# font-size: 1em;
|
769 |
+
# border: 2px solid #d3bce8; /* Light purple border */
|
770 |
+
# border-radius: 10px;
|
771 |
+
# background: #ffffff;
|
772 |
+
# box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
|
773 |
+
# transition: all 0.3s ease;
|
774 |
+
# }
|
775 |
+
# #submission-fields input[type="file"]:hover,
|
776 |
+
# #submission-fields input[type="text"]:hover {
|
777 |
+
# border-color: #6a1b9a; /* Darker purple on hover */
|
778 |
+
# }
|
779 |
+
# #submission-fields input[type="file"]:focus,
|
780 |
+
# #submission-fields input[type="text"]:focus {
|
781 |
+
# border-color: #6a1b9a; /* Darker purple on focus */
|
782 |
+
# outline: none;
|
783 |
+
# box-shadow: 0 0 8px rgba(106, 27, 154, 0.5); /* Glow effect */
|
784 |
+
# }
|
785 |
+
# /* Evaluation Status Styling */
|
786 |
+
# #evaluation-status {
|
787 |
+
# margin-top: 15px;
|
788 |
+
# padding: 10px 20px;
|
789 |
+
# font-size: 1em;
|
790 |
+
# border-radius: 8px;
|
791 |
+
# border: 2px solid #6a1b9a; /* Matches the hover color */
|
792 |
+
# background: #f9f7fd; /* Subtle purple background */
|
793 |
+
# color: #333;
|
794 |
+
# font-weight: bold;
|
795 |
+
# box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
|
796 |
+
# }
|
797 |
+
# /* Buttons Styling */
|
798 |
+
# #submission-buttons button {
|
799 |
+
# padding: 12px 25px;
|
800 |
+
# font-size: 1.1em;
|
801 |
+
# color: #ffffff;
|
802 |
+
# background: #6a1b9a;
|
803 |
+
# border: none;
|
804 |
+
# border-radius: 30px;
|
805 |
+
# cursor: pointer;
|
806 |
+
# font-weight: bold;
|
807 |
+
# transition: all 0.3s ease;
|
808 |
+
# box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
809 |
+
# }
|
810 |
+
# #submission-buttons button:hover {
|
811 |
+
# background: #8c52d3; /* Slightly lighter purple */
|
812 |
+
# transform: scale(1.05);
|
813 |
+
# box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
|
814 |
+
# }
|
815 |
+
# #submission-buttons button:active {
|
816 |
+
# background: #5e1287; /* Darker purple */
|
817 |
+
# transform: scale(0.98);
|
818 |
+
# box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
|
819 |
+
# }
|
820 |
+
|
821 |
+
|
822 |
+
# """
|
823 |
|
824 |
# Create the Gradio Interface
|
825 |
|