Update app.py
Browse files
app.py
CHANGED
|
@@ -24,6 +24,13 @@ st.markdown("""
|
|
| 24 |
font-weight: bold;
|
| 25 |
color: #2C3E50;
|
| 26 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
.stButton > button {
|
| 28 |
width: 100%;
|
| 29 |
background-color: #1E88E5;
|
|
@@ -32,6 +39,10 @@ st.markdown("""
|
|
| 32 |
font-weight: bold;
|
| 33 |
border-radius: 6px;
|
| 34 |
padding: 8px;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
}
|
| 36 |
.result-box {
|
| 37 |
text-align: center;
|
|
@@ -43,12 +54,6 @@ st.markdown("""
|
|
| 43 |
margin-top: 20px;
|
| 44 |
background-color: #388E3C;
|
| 45 |
}
|
| 46 |
-
.section-title {
|
| 47 |
-
font-size: 20px;
|
| 48 |
-
font-weight: bold;
|
| 49 |
-
color: #1E88E5;
|
| 50 |
-
margin-top: 20px;
|
| 51 |
-
}
|
| 52 |
</style>
|
| 53 |
""", unsafe_allow_html=True)
|
| 54 |
|
|
@@ -70,7 +75,7 @@ if st.sidebar.button("Hands-on Model"):
|
|
| 70 |
# Model Report Page
|
| 71 |
if st.session_state.current_page == "Model Report":
|
| 72 |
st.markdown("<h1 class='title'>Model Report</h1>", unsafe_allow_html=True)
|
| 73 |
-
st.
|
| 74 |
|
| 75 |
if st.button("▶ **Problem Statement**"):
|
| 76 |
switch_page("Problem Statement")
|
|
@@ -87,6 +92,7 @@ if st.session_state.current_page == "Model Report":
|
|
| 87 |
if st.button("▶ **Final Model**"):
|
| 88 |
switch_page("Final Model")
|
| 89 |
|
|
|
|
| 90 |
# Individual Sections
|
| 91 |
elif st.session_state.current_page in [
|
| 92 |
"Problem Statement", "Data Collection", "Simple EDA",
|
|
|
|
| 24 |
font-weight: bold;
|
| 25 |
color: #2C3E50;
|
| 26 |
}
|
| 27 |
+
.subtitle {
|
| 28 |
+
text-align: center;
|
| 29 |
+
font-size: 20px;
|
| 30 |
+
font-weight: bold;
|
| 31 |
+
color: #1E88E5;
|
| 32 |
+
margin-top: 10px;
|
| 33 |
+
}
|
| 34 |
.stButton > button {
|
| 35 |
width: 100%;
|
| 36 |
background-color: #1E88E5;
|
|
|
|
| 39 |
font-weight: bold;
|
| 40 |
border-radius: 6px;
|
| 41 |
padding: 8px;
|
| 42 |
+
transition: 0.3s;
|
| 43 |
+
}
|
| 44 |
+
.stButton > button:hover {
|
| 45 |
+
background-color: #1565C0; /* Darker Blue on Hover */
|
| 46 |
}
|
| 47 |
.result-box {
|
| 48 |
text-align: center;
|
|
|
|
| 54 |
margin-top: 20px;
|
| 55 |
background-color: #388E3C;
|
| 56 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
</style>
|
| 58 |
""", unsafe_allow_html=True)
|
| 59 |
|
|
|
|
| 75 |
# Model Report Page
|
| 76 |
if st.session_state.current_page == "Model Report":
|
| 77 |
st.markdown("<h1 class='title'>Model Report</h1>", unsafe_allow_html=True)
|
| 78 |
+
st.markdown("<p class='subtitle'>Explore different stages of the Life Expectancy project</p>", unsafe_allow_html=True)
|
| 79 |
|
| 80 |
if st.button("▶ **Problem Statement**"):
|
| 81 |
switch_page("Problem Statement")
|
|
|
|
| 92 |
if st.button("▶ **Final Model**"):
|
| 93 |
switch_page("Final Model")
|
| 94 |
|
| 95 |
+
|
| 96 |
# Individual Sections
|
| 97 |
elif st.session_state.current_page in [
|
| 98 |
"Problem Statement", "Data Collection", "Simple EDA",
|