Yashvj123 commited on
Commit
a5dc826
·
verified ·
1 Parent(s): 68963be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -9
app.py CHANGED
@@ -89,19 +89,19 @@ if st.session_state.current_page == "Model Report":
89
 
90
  st.markdown("<p class='subtitle'>Explore different stages of the Life Expectancy project</p>", unsafe_allow_html=True)
91
 
92
- if st.button("**Problem Statement**"):
93
  switch_page("Problem Statement")
94
- if st.button("**Data Collection**"):
95
  switch_page("Data Collection")
96
- if st.button("**Simple EDA**"):
97
  switch_page("Simple EDA")
98
- if st.button("**Data Pre-processing**"):
99
  switch_page("Data Pre-processing")
100
- if st.button("**Exploratory Data Analysis**"):
101
  switch_page("EDA")
102
- if st.button("**Model Building**"):
103
  switch_page("Model Building")
104
- if st.button("**Final Model**"):
105
  switch_page("Final Model")
106
 
107
 
@@ -356,7 +356,7 @@ elif st.session_state.current_page == "EDA":
356
  st.markdown("<h2 class='subtitle' style='text-align: center;'>How Specific Columns Affect Life Expectancy</h2>", unsafe_allow_html=True)
357
 
358
  # GDP vs. Life Expectancy
359
- st.image("images/specific_col_affecting_target.png", caption="GDP vs. Life Expectancy", use_container_width=True)
360
  st.markdown("""
361
  <h5>
362
  Insights:
@@ -389,10 +389,13 @@ elif st.session_state.current_page == "EDA":
389
  st.image("images/target_col vs countries.png", caption="Life Expectancy vs Developed / Undeveloped Countries", use_container_width=True)
390
  st.markdown("""
391
  <h5 style="text-align: center;">
392
- - Insight: Life Expectancy is <b>higher in Developed Countries</b> due to Advanced Healthcare, Better Nutrition, Medical Interventions.
393
  </h5>""", unsafe_allow_html=True)
394
  st.markdown("<br>", unsafe_allow_html=True)
395
 
 
 
 
396
  # Hands-on Model Page
397
  elif st.session_state.current_page == "Hands-on Model":
398
  st.title("Hands-on Model")
 
89
 
90
  st.markdown("<p class='subtitle'>Explore different stages of the Life Expectancy project</p>", unsafe_allow_html=True)
91
 
92
+ if st.button("**Problem Statement**"):
93
  switch_page("Problem Statement")
94
+ if st.button("**Data Collection**"):
95
  switch_page("Data Collection")
96
+ if st.button("**Simple EDA**"):
97
  switch_page("Simple EDA")
98
+ if st.button("**Data Pre-processing**"):
99
  switch_page("Data Pre-processing")
100
+ if st.button("**Exploratory Data Analysis**"):
101
  switch_page("EDA")
102
+ if st.button("**Model Building**"):
103
  switch_page("Model Building")
104
+ if st.button("**Final Model**"):
105
  switch_page("Final Model")
106
 
107
 
 
356
  st.markdown("<h2 class='subtitle' style='text-align: center;'>How Specific Columns Affect Life Expectancy</h2>", unsafe_allow_html=True)
357
 
358
  # GDP vs. Life Expectancy
359
+ st.image("images/specific_col_affecting_target.png", caption="Features vs. Life Expectancy", use_container_width=True)
360
  st.markdown("""
361
  <h5>
362
  Insights:
 
389
  st.image("images/target_col vs countries.png", caption="Life Expectancy vs Developed / Undeveloped Countries", use_container_width=True)
390
  st.markdown("""
391
  <h5 style="text-align: center;">
392
+ Insight: Life Expectancy is <b>higher in Developed Countries</b> due to Advanced Healthcare, Better Nutrition, Medical Interventions.
393
  </h5>""", unsafe_allow_html=True)
394
  st.markdown("<br>", unsafe_allow_html=True)
395
 
396
+ if st.button("🔙 Go Back to Model Report"):
397
+ switch_page("Model Report")
398
+
399
  # Hands-on Model Page
400
  elif st.session_state.current_page == "Hands-on Model":
401
  st.title("Hands-on Model")