Spaces:
Sleeping
Sleeping
Update pages/3Life Cycle of Machine Learning Project.py
Browse files
pages/3Life Cycle of Machine Learning Project.py
CHANGED
|
@@ -46,74 +46,98 @@ st.markdown("""
|
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
-
st
|
|
|
|
|
|
|
|
|
|
| 50 |
<style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
.circle-container {
|
| 52 |
display: flex;
|
| 53 |
-
|
| 54 |
align-items: center;
|
| 55 |
-
margin: 50px auto;
|
| 56 |
position: relative;
|
| 57 |
-
width:
|
| 58 |
-
height:
|
|
|
|
| 59 |
}
|
| 60 |
-
.circle-container button {
|
| 61 |
position: absolute;
|
| 62 |
-
|
| 63 |
-
|
|
|
|
| 64 |
color: white;
|
|
|
|
| 65 |
border-radius: 50%;
|
| 66 |
-
|
|
|
|
|
|
|
|
|
|
| 67 |
text-align: center;
|
|
|
|
|
|
|
| 68 |
cursor: pointer;
|
| 69 |
-
transition:
|
| 70 |
-
font-weight: bold;
|
| 71 |
}
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
}
|
| 83 |
</style>
|
|
|
|
| 84 |
|
|
|
|
|
|
|
| 85 |
<div class="circle-container">
|
| 86 |
-
<
|
| 87 |
-
<
|
| 88 |
-
<
|
| 89 |
-
<
|
| 90 |
-
<
|
| 91 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
</div>
|
| 93 |
-
"""
|
| 94 |
-
|
| 95 |
-
# Query parameters to identify selected steps
|
| 96 |
-
query_params = st.experimental_get_query_params()
|
| 97 |
-
step = query_params.get("step", [""])[0]
|
| 98 |
|
| 99 |
-
#
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
elif step == "planning":
|
| 104 |
-
st.subheader("Step: Planning")
|
| 105 |
-
st.write("This is the planning phase where detailed project plans are created.")
|
| 106 |
-
elif step == "execution":
|
| 107 |
-
st.subheader("Step: Execution")
|
| 108 |
-
st.write("This is the execution phase where the project plan is implemented.")
|
| 109 |
-
elif step == "monitoring":
|
| 110 |
-
st.subheader("Step: Monitoring")
|
| 111 |
-
st.write("This is the monitoring phase to track progress and adjust plans.")
|
| 112 |
-
elif step == "closure":
|
| 113 |
-
st.subheader("Step: Closure")
|
| 114 |
-
st.write("This is the closure phase where the project is finalized and reviewed.")
|
| 115 |
-
elif step == "review":
|
| 116 |
-
st.subheader("Step: Review")
|
| 117 |
-
st.write("This is the review phase where lessons learned are documented.")
|
| 118 |
-
else:
|
| 119 |
-
st.write("Select a step to learn more about it!")
|
|
|
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
+
import streamlit as st
|
| 50 |
+
|
| 51 |
+
# CSS styles for circular layout
|
| 52 |
+
custom_css = """
|
| 53 |
<style>
|
| 54 |
+
html, body, [data-testid="stAppViewContainer"] {
|
| 55 |
+
background: linear-gradient(
|
| 56 |
+
rgba(0, 0, 0, 0.6), /* Semi-transparent black overlay */
|
| 57 |
+
rgba(0, 0, 0, 0.6)
|
| 58 |
+
),
|
| 59 |
+
url('https://lh5.googleusercontent.com/uMsECCeKutDPVHLEgNxGD069b96jVsgQ9fohrZUXie2f5Il5sk0NurHcrbQi_74OB2issA24btF0jL1Va17r2zTF2jOTu1iUiZIoCvO_r3BVodh3bMD2VzQbLecUa5N7kZHdhIASEBxBntmy4rkqv8U') no-repeat center center fixed;
|
| 60 |
+
background-size: cover;
|
| 61 |
+
font-family: Arial, sans-serif;
|
| 62 |
+
color: #ffffff;
|
| 63 |
+
}
|
| 64 |
+
h1 {
|
| 65 |
+
margin: 20px 0;
|
| 66 |
+
font-size: 2.5rem;
|
| 67 |
+
text-align: center;
|
| 68 |
+
}
|
| 69 |
.circle-container {
|
| 70 |
display: flex;
|
| 71 |
+
justify-content: center;
|
| 72 |
align-items: center;
|
|
|
|
| 73 |
position: relative;
|
| 74 |
+
width: 500px;
|
| 75 |
+
height: 500px;
|
| 76 |
+
margin: 50px auto;
|
| 77 |
}
|
| 78 |
+
.circle-container .button {
|
| 79 |
position: absolute;
|
| 80 |
+
width: 100px;
|
| 81 |
+
height: 100px;
|
| 82 |
+
background: #1e1e2f;
|
| 83 |
color: white;
|
| 84 |
+
border: 2px solid #555;
|
| 85 |
border-radius: 50%;
|
| 86 |
+
display: flex;
|
| 87 |
+
justify-content: center;
|
| 88 |
+
align-items: center;
|
| 89 |
+
font-size: 0.9rem;
|
| 90 |
text-align: center;
|
| 91 |
+
text-decoration: none;
|
| 92 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
|
| 93 |
cursor: pointer;
|
| 94 |
+
transition: background 0.2s, box-shadow 0.2s;
|
|
|
|
| 95 |
}
|
| 96 |
+
.circle-container .button:hover {
|
| 97 |
+
background: #333; /* Change background color */
|
| 98 |
+
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3); /* Add shadow on hover */
|
| 99 |
+
}
|
| 100 |
+
/* Positioning buttons in a circular layout */
|
| 101 |
+
.button:nth-child(1) { transform: rotate(270deg) translate(200px) rotate(-270deg); }
|
| 102 |
+
.button:nth-child(2) { transform: rotate(306deg) translate(200px) rotate(-306deg); }
|
| 103 |
+
.button:nth-child(3) { transform: rotate(342deg) translate(200px) rotate(-342deg); }
|
| 104 |
+
.button:nth-child(4) { transform: rotate(378deg) translate(200px) rotate(-378deg); }
|
| 105 |
+
.button:nth-child(5) { transform: rotate(414deg) translate(200px) rotate(-414deg); }
|
| 106 |
+
.button:nth-child(6) { transform: rotate(450deg) translate(200px) rotate(-450deg); }
|
| 107 |
+
.button:nth-child(7) { transform: rotate(486deg) translate(200px) rotate(-486deg); }
|
| 108 |
+
.button:nth-child(8) { transform: rotate(522deg) translate(200px) rotate(-522deg); }
|
| 109 |
+
.button:nth-child(9) { transform: rotate(558deg) translate(200px) rotate(-558deg); }
|
| 110 |
+
.button:nth-child(10) { transform: rotate(594deg) translate(200px) rotate(-594deg); }
|
| 111 |
+
.center {
|
| 112 |
+
position: absolute;
|
| 113 |
+
top: 50%;
|
| 114 |
+
left: 50%;
|
| 115 |
+
transform: translate(-50%, -50%);
|
| 116 |
+
font-size: 1.2rem;
|
| 117 |
+
color: white;
|
| 118 |
+
text-align: center;
|
| 119 |
}
|
| 120 |
</style>
|
| 121 |
+
"""
|
| 122 |
|
| 123 |
+
# HTML content for lifecycle
|
| 124 |
+
ml_lifecycle_html = """
|
| 125 |
<div class="circle-container">
|
| 126 |
+
<a href="#" class="button">Problem Statement</a>
|
| 127 |
+
<a href="#" class="button">Data Collection</a>
|
| 128 |
+
<a href="#" class="button">Simple EDA</a>
|
| 129 |
+
<a href="#" class="button">Pre Processing</a>
|
| 130 |
+
<a href="#" class="button">EDA</a>
|
| 131 |
+
<a href="#" class="button">Feature Engineering</a>
|
| 132 |
+
<a href="#" class="button">Model Training</a>
|
| 133 |
+
<a href="#" class="button">Testing</a>
|
| 134 |
+
<a href="#" class="button">Deployment</a>
|
| 135 |
+
<a href="#" class="button">Monitoring</a>
|
| 136 |
+
<div class="center"><strong>ML Lifecycle</strong></div>
|
| 137 |
</div>
|
| 138 |
+
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
|
| 140 |
+
# Apply CSS and HTML
|
| 141 |
+
st.markdown(custom_css, unsafe_allow_html=True)
|
| 142 |
+
st.markdown("<h1>Machine Learning Project Lifecycle</h1>", unsafe_allow_html=True)
|
| 143 |
+
st.markdown(ml_lifecycle_html, unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|