Spaces:
Sleeping
Sleeping
Update pages/3Life Cycle of Machine Learning Project.py
Browse files
pages/3Life Cycle of Machine Learning Project.py
CHANGED
|
@@ -29,21 +29,25 @@ st.markdown("""
|
|
| 29 |
# Title of the page
|
| 30 |
st.markdown("""<div style="text-align: center; margin-top: 20px;"><h1 style="color: #BB3385;">Life Cycle of End to End ML Project</h1></div>""", unsafe_allow_html=True)
|
| 31 |
|
| 32 |
-
# Inject custom CSS for the flowchart layout
|
| 33 |
st.markdown(
|
| 34 |
"""
|
| 35 |
<style>
|
| 36 |
.flowchart-container {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
display: flex;
|
| 38 |
flex-direction: column;
|
|
|
|
| 39 |
align-items: center;
|
| 40 |
-
gap: 20px;
|
| 41 |
-
margin-top: 50px;
|
| 42 |
}
|
| 43 |
|
| 44 |
-
/*
|
| 45 |
.phase {
|
| 46 |
-
|
|
|
|
| 47 |
height: 60px; /* Rectangle height */
|
| 48 |
border-radius: 8px; /* Rounded edges */
|
| 49 |
font-size: 16px; /* Text size */
|
|
@@ -58,17 +62,17 @@ st.markdown(
|
|
| 58 |
color: black; /* Text color */
|
| 59 |
}
|
| 60 |
|
| 61 |
-
/*
|
| 62 |
-
.phase-1 { background-color: #FF7043; } /* Red */
|
| 63 |
-
.phase-2 { background-color: #42A5F5; } /* Blue */
|
| 64 |
-
.phase-3 { background-color: #66BB6A; } /* Green */
|
| 65 |
-
.phase-4 { background-color: #FFEB3B; } /* Yellow */
|
| 66 |
-
.phase-5 { background-color: #F06292; } /* Pink */
|
| 67 |
-
.phase-6 { background-color: #42A5F5; } /* Blue */
|
| 68 |
-
.phase-7 { background-color: #FF7043; } /* Red */
|
| 69 |
-
.phase-8 { background-color: #66BB6A; } /* Green */
|
| 70 |
-
.phase-9 { background-color: #FFEB3B; } /* Yellow */
|
| 71 |
-
.phase-10 { background-color: #F06292; } /* Pink */
|
| 72 |
|
| 73 |
.phase:hover {
|
| 74 |
transform: scale(1.05);
|
|
@@ -78,25 +82,20 @@ st.markdown(
|
|
| 78 |
.arrow {
|
| 79 |
font-size: 24px;
|
| 80 |
color: #4F4F4F;
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
.description {
|
| 84 |
-
font-size: 14px;
|
| 85 |
-
color: #4F4F4F;
|
| 86 |
-
margin-top: -5px;
|
| 87 |
}
|
| 88 |
</style>
|
| 89 |
""", unsafe_allow_html=True
|
| 90 |
)
|
| 91 |
|
| 92 |
-
# HTML structure for the flowchart
|
| 93 |
st.markdown(
|
| 94 |
"""
|
| 95 |
<div class="flowchart-container">
|
| 96 |
<!-- Problem Statement -->
|
| 97 |
<a href="/problem-statement" class="phase phase-1" target="_self">1. Problem Statement</a>
|
| 98 |
<div class="arrow">⬇️</div>
|
| 99 |
-
|
| 100 |
<!-- Data Collection -->
|
| 101 |
<a href="/data-collection" class="phase phase-2" target="_self">2. Data Collection</a>
|
| 102 |
<div class="arrow">⬇️</div>
|
|
|
|
| 29 |
# Title of the page
|
| 30 |
st.markdown("""<div style="text-align: center; margin-top: 20px;"><h1 style="color: #BB3385;">Life Cycle of End to End ML Project</h1></div>""", unsafe_allow_html=True)
|
| 31 |
|
| 32 |
+
# Inject custom CSS for the circular flowchart layout
|
| 33 |
st.markdown(
|
| 34 |
"""
|
| 35 |
<style>
|
| 36 |
.flowchart-container {
|
| 37 |
+
position: relative;
|
| 38 |
+
width: 500px; /* Container width */
|
| 39 |
+
height: 500px; /* Container height */
|
| 40 |
+
margin: 0 auto;
|
| 41 |
display: flex;
|
| 42 |
flex-direction: column;
|
| 43 |
+
justify-content: center;
|
| 44 |
align-items: center;
|
|
|
|
|
|
|
| 45 |
}
|
| 46 |
|
| 47 |
+
/* Circle arrangement for the phases */
|
| 48 |
.phase {
|
| 49 |
+
position: absolute;
|
| 50 |
+
width: 250px; /* Rectangle width */
|
| 51 |
height: 60px; /* Rectangle height */
|
| 52 |
border-radius: 8px; /* Rounded edges */
|
| 53 |
font-size: 16px; /* Text size */
|
|
|
|
| 62 |
color: black; /* Text color */
|
| 63 |
}
|
| 64 |
|
| 65 |
+
/* Color for each phase */
|
| 66 |
+
.phase-1 { background-color: #FF7043; top: 0%; left: 50%; transform: translateX(-50%); } /* Red */
|
| 67 |
+
.phase-2 { background-color: #42A5F5; top: 25%; left: 90%; transform: translate(-50%, -50%); } /* Blue */
|
| 68 |
+
.phase-3 { background-color: #66BB6A; top: 50%; left: 100%; transform: translate(-50%, -50%); } /* Green */
|
| 69 |
+
.phase-4 { background-color: #FFEB3B; top: 75%; left: 90%; transform: translate(-50%, -50%); } /* Yellow */
|
| 70 |
+
.phase-5 { background-color: #F06292; top: 100%; left: 50%; transform: translateX(-50%); } /* Pink */
|
| 71 |
+
.phase-6 { background-color: #42A5F5; top: 75%; left: 10%; transform: translate(-50%, -50%); } /* Blue */
|
| 72 |
+
.phase-7 { background-color: #FF7043; top: 50%; left: 0%; transform: translate(-50%, -50%); } /* Red */
|
| 73 |
+
.phase-8 { background-color: #66BB6A; top: 25%; left: 10%; transform: translate(-50%, -50%); } /* Green */
|
| 74 |
+
.phase-9 { background-color: #FFEB3B; top: 0%; left: 50%; transform: translateX(-50%); } /* Yellow */
|
| 75 |
+
.phase-10 { background-color: #F06292; top: 50%; left: 10%; transform: translate(-50%, -50%); } /* Pink */
|
| 76 |
|
| 77 |
.phase:hover {
|
| 78 |
transform: scale(1.05);
|
|
|
|
| 82 |
.arrow {
|
| 83 |
font-size: 24px;
|
| 84 |
color: #4F4F4F;
|
| 85 |
+
margin: 20px 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
}
|
| 87 |
</style>
|
| 88 |
""", unsafe_allow_html=True
|
| 89 |
)
|
| 90 |
|
| 91 |
+
# HTML structure for the circular flowchart
|
| 92 |
st.markdown(
|
| 93 |
"""
|
| 94 |
<div class="flowchart-container">
|
| 95 |
<!-- Problem Statement -->
|
| 96 |
<a href="/problem-statement" class="phase phase-1" target="_self">1. Problem Statement</a>
|
| 97 |
<div class="arrow">⬇️</div>
|
| 98 |
+
|
| 99 |
<!-- Data Collection -->
|
| 100 |
<a href="/data-collection" class="phase phase-2" target="_self">2. Data Collection</a>
|
| 101 |
<div class="arrow">⬇️</div>
|