Update app.py
Browse files
app.py
CHANGED
|
@@ -64,14 +64,13 @@ st.markdown("""
|
|
| 64 |
if "current_page" not in st.session_state:
|
| 65 |
st.session_state.current_page = "Model Report"
|
| 66 |
|
| 67 |
-
# Function to switch pages
|
| 68 |
def switch_page(page):
|
| 69 |
st.session_state.current_page = page
|
| 70 |
|
| 71 |
# Sidebar Navigation
|
| 72 |
st.sidebar.title("Navigation")
|
| 73 |
-
if st.sidebar.button("Model
|
| 74 |
-
switch_page("Model
|
| 75 |
if st.sidebar.button("Hands-on Model"):
|
| 76 |
switch_page("Hands-on Model")
|
| 77 |
|
|
@@ -80,8 +79,8 @@ data = pd.read_csv("Life Expectancy Data.csv")
|
|
| 80 |
data.columns = data.columns.str.strip()
|
| 81 |
|
| 82 |
# Model Report Page
|
| 83 |
-
if st.session_state.current_page == "Model
|
| 84 |
-
st.markdown("<h1 class='title'>Model
|
| 85 |
|
| 86 |
st.markdown("<hr style='border:1px solid #ddd;'>", unsafe_allow_html=True)
|
| 87 |
|
|
@@ -162,7 +161,7 @@ if st.session_state.current_page == "Model Report":
|
|
| 162 |
margin: 5px;
|
| 163 |
transition: 0.3s;
|
| 164 |
}
|
| 165 |
-
.about-links a.medium{
|
| 166 |
background: #24292e;
|
| 167 |
}
|
| 168 |
.about-links a:hover {
|
|
@@ -180,7 +179,7 @@ if st.session_state.current_page == "Model Report":
|
|
| 180 |
|
| 181 |
<div class="about-links">
|
| 182 |
<a href="https://www.linkedin.com/in/yash-jadhav-454b0a237/" target="_blank">π LinkedIn</a>
|
| 183 |
-
<a href="https://medium.com/@yashvj2222" target="_blank" class="medium"
|
| 184 |
</div>
|
| 185 |
</div>
|
| 186 |
""",
|
|
@@ -191,6 +190,7 @@ if st.session_state.current_page == "Model Report":
|
|
| 191 |
|
| 192 |
|
| 193 |
|
|
|
|
| 194 |
# Individual Sections
|
| 195 |
elif st.session_state.current_page == "Problem Statement":
|
| 196 |
st.markdown("<h1 class='title'>Problem Statement</h1>", unsafe_allow_html=True)
|
|
|
|
| 64 |
if "current_page" not in st.session_state:
|
| 65 |
st.session_state.current_page = "Model Report"
|
| 66 |
|
|
|
|
| 67 |
def switch_page(page):
|
| 68 |
st.session_state.current_page = page
|
| 69 |
|
| 70 |
# Sidebar Navigation
|
| 71 |
st.sidebar.title("Navigation")
|
| 72 |
+
if st.sidebar.button("Model Pipeline"):
|
| 73 |
+
switch_page("Model Pipeline")
|
| 74 |
if st.sidebar.button("Hands-on Model"):
|
| 75 |
switch_page("Hands-on Model")
|
| 76 |
|
|
|
|
| 79 |
data.columns = data.columns.str.strip()
|
| 80 |
|
| 81 |
# Model Report Page
|
| 82 |
+
if st.session_state.current_page == "Model Pipeline":
|
| 83 |
+
st.markdown("<h1 class='title'>Model Pipeline</h1>", unsafe_allow_html=True)
|
| 84 |
|
| 85 |
st.markdown("<hr style='border:1px solid #ddd;'>", unsafe_allow_html=True)
|
| 86 |
|
|
|
|
| 161 |
margin: 5px;
|
| 162 |
transition: 0.3s;
|
| 163 |
}
|
| 164 |
+
.about-links a.medium {
|
| 165 |
background: #24292e;
|
| 166 |
}
|
| 167 |
.about-links a:hover {
|
|
|
|
| 179 |
|
| 180 |
<div class="about-links">
|
| 181 |
<a href="https://www.linkedin.com/in/yash-jadhav-454b0a237/" target="_blank">π LinkedIn</a>
|
| 182 |
+
<a href="https://medium.com/@yashvj2222" target="_blank" class="medium">βοΈ Medium</a>
|
| 183 |
</div>
|
| 184 |
</div>
|
| 185 |
""",
|
|
|
|
| 190 |
|
| 191 |
|
| 192 |
|
| 193 |
+
|
| 194 |
# Individual Sections
|
| 195 |
elif st.session_state.current_page == "Problem Statement":
|
| 196 |
st.markdown("<h1 class='title'>Problem Statement</h1>", unsafe_allow_html=True)
|