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