Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -658,7 +658,7 @@ h2 {
|
|
658 |
color: black;
|
659 |
}
|
660 |
/* Computer Science */
|
661 |
-
#btn_cs_help { background-color: #
|
662 |
#btn_cs_help::before {
|
663 |
font-family: "Font Awesome 6 Free";
|
664 |
content: "\f5fc";
|
@@ -670,7 +670,7 @@ h2 {
|
|
670 |
content: "\f66f";
|
671 |
}
|
672 |
/* English */
|
673 |
-
#btn_eng_help { background-color: #
|
674 |
#btn_eng_help::before {
|
675 |
font-family: "Font Awesome 6 Free";
|
676 |
content: "\f518";
|
@@ -729,28 +729,30 @@ h2 {
|
|
729 |
content: "\f1ec";
|
730 |
}
|
731 |
/* COMPUTER SCIENCE SUBTOPICS */
|
732 |
-
|
|
|
733 |
#btn_sw::before {
|
734 |
font-family: "Font Awesome 6 Free";
|
735 |
content: "\f121";
|
736 |
}
|
737 |
-
#btn_hw { background-color: #
|
738 |
#btn_hw::before {
|
739 |
font-family: "Font Awesome 6 Free";
|
740 |
content: "\f085";
|
741 |
}
|
742 |
-
#btn_leet { background-color: #
|
743 |
#btn_leet::before {
|
744 |
font-family: "Font Awesome 6 Free";
|
745 |
content: "\f5fc";
|
746 |
}
|
747 |
-
#btn_proj { background-color: #
|
748 |
#btn_proj::before {
|
749 |
font-family: "Font Awesome 6 Free";
|
750 |
content: "\f542";
|
751 |
}
|
752 |
/* HISTORY SUBTOPICS */
|
753 |
-
|
|
|
754 |
#btn_am_hist::before {
|
755 |
font-family: "Font Awesome 6 Free";
|
756 |
content: "\f5a2";
|
@@ -758,35 +760,36 @@ h2 {
|
|
758 |
#btn_mod_hist { background-color: #AECBFA; }
|
759 |
#btn_mod_hist::before {
|
760 |
font-family: "Font Awesome 6 Free";
|
761 |
-
content: "\
|
762 |
}
|
763 |
-
#btn_anc_hist { background-color: #
|
764 |
#btn_anc_hist::before {
|
765 |
font-family: "Font Awesome 6 Free";
|
766 |
-
content: "\
|
767 |
}
|
768 |
-
#btn_gov { background-color: #
|
769 |
#btn_gov::before {
|
770 |
font-family: "Font Awesome 6 Free";
|
771 |
content: "\f6e3";
|
772 |
}
|
773 |
/* ENGLISH SUBTOPICS */
|
|
|
774 |
#btn_gram { background-color: #FBBC04; }
|
775 |
#btn_gram::before {
|
776 |
font-family: "Font Awesome 6 Free";
|
777 |
content: "\f5d7";
|
778 |
}
|
779 |
-
#btn_read { background-color: #
|
780 |
#btn_read::before {
|
781 |
font-family: "Font Awesome 6 Free";
|
782 |
content: "\f02d";
|
783 |
}
|
784 |
-
#btn_write { background-color: #
|
785 |
#btn_write::before {
|
786 |
font-family: "Font Awesome 6 Free";
|
787 |
content: "\f303";
|
788 |
}
|
789 |
-
#btn_app { background-color: #
|
790 |
#btn_app::before {
|
791 |
font-family: "Font Awesome 6 Free";
|
792 |
content: "\f5da";
|
@@ -903,7 +906,7 @@ h2 {
|
|
903 |
content: "\f061";
|
904 |
color: #333;
|
905 |
font-size: 20px;
|
906 |
-
transform: scaleX(
|
907 |
transform-origin: center;
|
908 |
}
|
909 |
.home-button {
|
@@ -947,14 +950,15 @@ h2 {
|
|
947 |
display: flex;
|
948 |
align-items: center;
|
949 |
justify-content: center;
|
950 |
-
z-index: 9999;
|
951 |
}
|
952 |
.progress-button::before {
|
953 |
font-family: "Font Awesome 6 Free";
|
954 |
-
content: "\f091";
|
955 |
font-size: 30px;
|
956 |
}
|
957 |
""") as demo:
|
|
|
958 |
|
959 |
user_session = gr.State(init_session())
|
960 |
# New state to store which page we came from when going to Progress Tracker
|
@@ -1068,7 +1072,7 @@ h2 {
|
|
1068 |
btn_new_task = gr.Button("🔄 New Task Suggestion")
|
1069 |
btn_fun_fact = gr.Button("Fun Fact")
|
1070 |
with gr.Row():
|
1071 |
-
generate_image_toggle = gr.Checkbox(label="Generate Image", value=
|
1072 |
clear_chat_button = gr.Button("Clear Chat")
|
1073 |
btn_back_grade = gr.Button("", elem_classes=["home-button"])
|
1074 |
|
@@ -1081,10 +1085,10 @@ h2 {
|
|
1081 |
image3 = gr.Image(value="image3.jpg", interactive=False)
|
1082 |
image4 = gr.Image(value="image4.png", interactive=False)
|
1083 |
with gr.Row():
|
1084 |
-
blurb1 = gr.Markdown("
|
1085 |
-
blurb2 = gr.Markdown("
|
1086 |
-
blurb3 = gr.Markdown("
|
1087 |
-
blurb4 = gr.Markdown("
|
1088 |
btn_back_about = gr.Button("", elem_classes=["back-button"])
|
1089 |
|
1090 |
# PAGE 7: PROGRESS TRACKER (new page)
|
|
|
658 |
color: black;
|
659 |
}
|
660 |
/* Computer Science */
|
661 |
+
#btn_cs_help { background-color: #FBBC04; }
|
662 |
#btn_cs_help::before {
|
663 |
font-family: "Font Awesome 6 Free";
|
664 |
content: "\f5fc";
|
|
|
670 |
content: "\f66f";
|
671 |
}
|
672 |
/* English */
|
673 |
+
#btn_eng_help { background-color: #CCFF90; }
|
674 |
#btn_eng_help::before {
|
675 |
font-family: "Font Awesome 6 Free";
|
676 |
content: "\f518";
|
|
|
729 |
content: "\f1ec";
|
730 |
}
|
731 |
/* COMPUTER SCIENCE SUBTOPICS */
|
732 |
+
/* Updated to use the science palette: Yellow, Blue, Light Green, Red */
|
733 |
+
#btn_sw { background-color: #FBBC04; }
|
734 |
#btn_sw::before {
|
735 |
font-family: "Font Awesome 6 Free";
|
736 |
content: "\f121";
|
737 |
}
|
738 |
+
#btn_hw { background-color: #AECBFA; }
|
739 |
#btn_hw::before {
|
740 |
font-family: "Font Awesome 6 Free";
|
741 |
content: "\f085";
|
742 |
}
|
743 |
+
#btn_leet { background-color: #CCFF90; }
|
744 |
#btn_leet::before {
|
745 |
font-family: "Font Awesome 6 Free";
|
746 |
content: "\f5fc";
|
747 |
}
|
748 |
+
#btn_proj { background-color: #F28B82; }
|
749 |
#btn_proj::before {
|
750 |
font-family: "Font Awesome 6 Free";
|
751 |
content: "\f542";
|
752 |
}
|
753 |
/* HISTORY SUBTOPICS */
|
754 |
+
/* Updated to use the science palette and change the icon for world history */
|
755 |
+
#btn_am_hist { background-color: #FBBC04; }
|
756 |
#btn_am_hist::before {
|
757 |
font-family: "Font Awesome 6 Free";
|
758 |
content: "\f5a2";
|
|
|
760 |
#btn_mod_hist { background-color: #AECBFA; }
|
761 |
#btn_mod_hist::before {
|
762 |
font-family: "Font Awesome 6 Free";
|
763 |
+
content: "\f0ac"; /* Globe icon for world history */
|
764 |
}
|
765 |
+
#btn_anc_hist { background-color: #CCFF90; }
|
766 |
#btn_anc_hist::before {
|
767 |
font-family: "Font Awesome 6 Free";
|
768 |
+
content: "\f57d";
|
769 |
}
|
770 |
+
#btn_gov { background-color: #F28B82; }
|
771 |
#btn_gov::before {
|
772 |
font-family: "Font Awesome 6 Free";
|
773 |
content: "\f6e3";
|
774 |
}
|
775 |
/* ENGLISH SUBTOPICS */
|
776 |
+
/* Updated to use the science palette */
|
777 |
#btn_gram { background-color: #FBBC04; }
|
778 |
#btn_gram::before {
|
779 |
font-family: "Font Awesome 6 Free";
|
780 |
content: "\f5d7";
|
781 |
}
|
782 |
+
#btn_read { background-color: #AECBFA; }
|
783 |
#btn_read::before {
|
784 |
font-family: "Font Awesome 6 Free";
|
785 |
content: "\f02d";
|
786 |
}
|
787 |
+
#btn_write { background-color: #CCFF90; }
|
788 |
#btn_write::before {
|
789 |
font-family: "Font Awesome 6 Free";
|
790 |
content: "\f303";
|
791 |
}
|
792 |
+
#btn_app { background-color: #F28B82; }
|
793 |
#btn_app::before {
|
794 |
font-family: "Font Awesome 6 Free";
|
795 |
content: "\f5da";
|
|
|
906 |
content: "\f061";
|
907 |
color: #333;
|
908 |
font-size: 20px;
|
909 |
+
transform: scaleX(1);
|
910 |
transform-origin: center;
|
911 |
}
|
912 |
.home-button {
|
|
|
950 |
display: flex;
|
951 |
align-items: center;
|
952 |
justify-content: center;
|
953 |
+
z-index: 9999;
|
954 |
}
|
955 |
.progress-button::before {
|
956 |
font-family: "Font Awesome 6 Free";
|
957 |
+
content: "\f091";
|
958 |
font-size: 30px;
|
959 |
}
|
960 |
""") as demo:
|
961 |
+
...
|
962 |
|
963 |
user_session = gr.State(init_session())
|
964 |
# New state to store which page we came from when going to Progress Tracker
|
|
|
1072 |
btn_new_task = gr.Button("🔄 New Task Suggestion")
|
1073 |
btn_fun_fact = gr.Button("Fun Fact")
|
1074 |
with gr.Row():
|
1075 |
+
generate_image_toggle = gr.Checkbox(label="Generate Image", value=False)
|
1076 |
clear_chat_button = gr.Button("Clear Chat")
|
1077 |
btn_back_grade = gr.Button("", elem_classes=["home-button"])
|
1078 |
|
|
|
1085 |
image3 = gr.Image(value="image3.jpg", interactive=False)
|
1086 |
image4 = gr.Image(value="image4.png", interactive=False)
|
1087 |
with gr.Row():
|
1088 |
+
blurb1 = gr.Markdown("Alan Zhu is a junior at the University of Pennsylvania in the Vagelos Integrated Program in Energy Research studying Physics, Computer Science, and Robotics. He is interested in pursuing quantum computing research in the future. Beyond academics, he enjoys playing basketball playing piano.")
|
1089 |
+
blurb2 = gr.Markdown("Zhitong Chen is a second-year graduate student at the University of Pennsylvania, majoring in Computer and Information Technology. She is passionate about NLP, LLMs, and exploring their applications in real-world products. Outside of her academic pursuits, she enjoys swimming, sprinting, playing badminton, and playing Guzheng.")
|
1090 |
+
blurb3 = gr.Markdown("Jiacheng Zhu is a second-year Master’s student in Data Science, passionate about NLP and LLMs. Outside of his academic pursuits, he enjoys capturing life’s moments through film photography.")
|
1091 |
+
blurb4 = gr.Markdown("Youzhang He is currently a second year graduate student at University of Pennsylvania majoring in Data Science. His research field is NLP, LLM and embodiedAI. He is interested in applying deep learning and machine learning techniques to solve real-world problems such as recommendation systems and webagents.")
|
1092 |
btn_back_about = gr.Button("", elem_classes=["back-button"])
|
1093 |
|
1094 |
# PAGE 7: PROGRESS TRACKER (new page)
|