Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ st.markdown("""
|
|
| 20 |
}
|
| 21 |
.title {
|
| 22 |
text-align: center;
|
| 23 |
-
font-size:
|
| 24 |
font-weight: bold;
|
| 25 |
color: #2C3E50;
|
| 26 |
}
|
|
@@ -29,7 +29,9 @@ st.markdown("""
|
|
| 29 |
background-color: #1E88E5;
|
| 30 |
color: white;
|
| 31 |
font-size: 16px;
|
|
|
|
| 32 |
border-radius: 6px;
|
|
|
|
| 33 |
}
|
| 34 |
.result-box {
|
| 35 |
text-align: center;
|
|
@@ -39,7 +41,7 @@ st.markdown("""
|
|
| 39 |
padding: 15px;
|
| 40 |
border-radius: 8px;
|
| 41 |
margin-top: 20px;
|
| 42 |
-
background-color: #388E3C;
|
| 43 |
}
|
| 44 |
.section-title {
|
| 45 |
font-size: 20px;
|
|
@@ -60,29 +62,29 @@ def switch_page(page):
|
|
| 60 |
|
| 61 |
# Sidebar Navigation
|
| 62 |
st.sidebar.title("Navigation")
|
| 63 |
-
if st.sidebar.button("
|
| 64 |
switch_page("Model Report")
|
| 65 |
-
if st.sidebar.button("
|
| 66 |
switch_page("Hands-on Model")
|
| 67 |
|
| 68 |
# Model Report Page
|
| 69 |
if st.session_state.current_page == "Model Report":
|
| 70 |
-
st.markdown("<h1 class='title'
|
| 71 |
-
st.write("Explore different
|
| 72 |
|
| 73 |
-
if st.button("
|
| 74 |
switch_page("Problem Statement")
|
| 75 |
-
if st.button("
|
| 76 |
switch_page("Data Collection")
|
| 77 |
-
if st.button("
|
| 78 |
switch_page("Simple EDA")
|
| 79 |
-
if st.button("
|
| 80 |
switch_page("Data Pre-processing")
|
| 81 |
-
if st.button("
|
| 82 |
switch_page("EDA")
|
| 83 |
-
if st.button("
|
| 84 |
switch_page("Model Building")
|
| 85 |
-
if st.button("
|
| 86 |
switch_page("Final Model")
|
| 87 |
|
| 88 |
# Individual Sections
|
|
@@ -93,12 +95,12 @@ elif st.session_state.current_page in [
|
|
| 93 |
st.title(st.session_state.current_page)
|
| 94 |
st.write(f"Details about {st.session_state.current_page}...") # Add actual content here
|
| 95 |
|
| 96 |
-
if st.button("
|
| 97 |
switch_page("Model Report")
|
| 98 |
|
| 99 |
# Hands-on Model Page
|
| 100 |
elif st.session_state.current_page == "Hands-on Model":
|
| 101 |
-
st.title("
|
| 102 |
st.write("Provide inputs to predict Life Expectancy.")
|
| 103 |
|
| 104 |
col1, col2 = st.columns(2)
|
|
@@ -144,11 +146,12 @@ elif st.session_state.current_page == "Hands-on Model":
|
|
| 144 |
unsafe_allow_html=True,
|
| 145 |
)
|
| 146 |
|
| 147 |
-
if st.button("
|
| 148 |
switch_page("Model Report")
|
| 149 |
|
| 150 |
|
| 151 |
|
|
|
|
| 152 |
# import streamlit as st
|
| 153 |
# import numpy as np
|
| 154 |
# import pickle
|
|
|
|
| 20 |
}
|
| 21 |
.title {
|
| 22 |
text-align: center;
|
| 23 |
+
font-size: 28px;
|
| 24 |
font-weight: bold;
|
| 25 |
color: #2C3E50;
|
| 26 |
}
|
|
|
|
| 29 |
background-color: #1E88E5;
|
| 30 |
color: white;
|
| 31 |
font-size: 16px;
|
| 32 |
+
font-weight: bold;
|
| 33 |
border-radius: 6px;
|
| 34 |
+
padding: 8px;
|
| 35 |
}
|
| 36 |
.result-box {
|
| 37 |
text-align: center;
|
|
|
|
| 41 |
padding: 15px;
|
| 42 |
border-radius: 8px;
|
| 43 |
margin-top: 20px;
|
| 44 |
+
background-color: #388E3C;
|
| 45 |
}
|
| 46 |
.section-title {
|
| 47 |
font-size: 20px;
|
|
|
|
| 62 |
|
| 63 |
# Sidebar Navigation
|
| 64 |
st.sidebar.title("Navigation")
|
| 65 |
+
if st.sidebar.button("Model Report"):
|
| 66 |
switch_page("Model Report")
|
| 67 |
+
if st.sidebar.button("Hands-on Model"):
|
| 68 |
switch_page("Hands-on Model")
|
| 69 |
|
| 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.write("Explore different stages of the Life Expectancy project.")
|
| 74 |
|
| 75 |
+
if st.button("βΆ **Problem Statement**"):
|
| 76 |
switch_page("Problem Statement")
|
| 77 |
+
if st.button("βΆ **Data Collection**"):
|
| 78 |
switch_page("Data Collection")
|
| 79 |
+
if st.button("βΆ **Simple EDA**"):
|
| 80 |
switch_page("Simple EDA")
|
| 81 |
+
if st.button("βΆ **Data Pre-processing**"):
|
| 82 |
switch_page("Data Pre-processing")
|
| 83 |
+
if st.button("βΆ **Exploratory Data Analysis**"):
|
| 84 |
switch_page("EDA")
|
| 85 |
+
if st.button("βΆ **Model Building**"):
|
| 86 |
switch_page("Model Building")
|
| 87 |
+
if st.button("βΆ **Final Model**"):
|
| 88 |
switch_page("Final Model")
|
| 89 |
|
| 90 |
# Individual Sections
|
|
|
|
| 95 |
st.title(st.session_state.current_page)
|
| 96 |
st.write(f"Details about {st.session_state.current_page}...") # Add actual content here
|
| 97 |
|
| 98 |
+
if st.button("β¬
**Back to Model Report**"):
|
| 99 |
switch_page("Model Report")
|
| 100 |
|
| 101 |
# Hands-on Model Page
|
| 102 |
elif st.session_state.current_page == "Hands-on Model":
|
| 103 |
+
st.title("Hands-on Model")
|
| 104 |
st.write("Provide inputs to predict Life Expectancy.")
|
| 105 |
|
| 106 |
col1, col2 = st.columns(2)
|
|
|
|
| 146 |
unsafe_allow_html=True,
|
| 147 |
)
|
| 148 |
|
| 149 |
+
if st.button("β¬
**Back to Model Report**"):
|
| 150 |
switch_page("Model Report")
|
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
+
|
| 155 |
# import streamlit as st
|
| 156 |
# import numpy as np
|
| 157 |
# import pickle
|