Spaces:
Sleeping
Sleeping
Update pages/Life_cycle_of_ML.py
Browse files- pages/Life_cycle_of_ML.py +27 -12
pages/Life_cycle_of_ML.py
CHANGED
@@ -1,40 +1,53 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
-
#
|
4 |
-
def display_lifecycle_stage(stage_name, description):
|
5 |
-
st.subheader(stage_name)
|
6 |
-
st.write(description)
|
7 |
-
|
8 |
-
# Title
|
9 |
-
st.title("Enhanced Machine Learning Life Cycle")
|
10 |
-
|
11 |
-
# Markdown Diagram with Shapes and Colors
|
12 |
st.markdown(
|
13 |
"""
|
14 |
<style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
.shape-box {
|
16 |
-
background-color:
|
17 |
padding: 10px;
|
18 |
border-radius: 5px;
|
19 |
text-align: center;
|
20 |
margin-bottom: 10px;
|
21 |
}
|
22 |
.shape-circle {
|
23 |
-
background-color:
|
24 |
padding: 10px;
|
25 |
border-radius: 50%;
|
26 |
text-align: center;
|
27 |
margin-bottom: 10px;
|
28 |
}
|
29 |
.shape-diamond {
|
30 |
-
background-color:
|
31 |
padding: 10px;
|
32 |
clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
|
33 |
text-align: center;
|
34 |
margin-bottom: 10px;
|
35 |
}
|
36 |
</style>
|
|
|
|
|
|
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
<div class="shape-box">Problem Statement</div>
|
39 |
<div class="shape-circle">Data Collection</div>
|
40 |
<div class="shape-box">Simple EDA</div>
|
@@ -106,3 +119,5 @@ with col2:
|
|
106 |
"Monitoring",
|
107 |
"Monitoring the deployed model's performance and maintaining its accuracy."
|
108 |
)
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
+
# Add custom CSS for background image
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
st.markdown(
|
5 |
"""
|
6 |
<style>
|
7 |
+
body {
|
8 |
+
background-image: url('https://via.placeholder.com/1920x1080'); /* Replace with your image URL */
|
9 |
+
background-size: cover;
|
10 |
+
background-position: center;
|
11 |
+
background-attachment: fixed;
|
12 |
+
color: #FFFFFF; /* Set text color to contrast the background */
|
13 |
+
}
|
14 |
.shape-box {
|
15 |
+
background-color: rgba(255, 221, 193, 0.8);
|
16 |
padding: 10px;
|
17 |
border-radius: 5px;
|
18 |
text-align: center;
|
19 |
margin-bottom: 10px;
|
20 |
}
|
21 |
.shape-circle {
|
22 |
+
background-color: rgba(193, 225, 255, 0.8);
|
23 |
padding: 10px;
|
24 |
border-radius: 50%;
|
25 |
text-align: center;
|
26 |
margin-bottom: 10px;
|
27 |
}
|
28 |
.shape-diamond {
|
29 |
+
background-color: rgba(193, 255, 193, 0.8);
|
30 |
padding: 10px;
|
31 |
clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
|
32 |
text-align: center;
|
33 |
margin-bottom: 10px;
|
34 |
}
|
35 |
</style>
|
36 |
+
""",
|
37 |
+
unsafe_allow_html=True,
|
38 |
+
)
|
39 |
|
40 |
+
# Function to display lifecycle descriptions
|
41 |
+
def display_lifecycle_stage(stage_name, description):
|
42 |
+
st.subheader(stage_name)
|
43 |
+
st.write(description)
|
44 |
+
|
45 |
+
# Title
|
46 |
+
st.title("Enhanced Machine Learning Life Cycle")
|
47 |
+
|
48 |
+
# Markdown Diagram with Shapes and Colors
|
49 |
+
st.markdown(
|
50 |
+
"""
|
51 |
<div class="shape-box">Problem Statement</div>
|
52 |
<div class="shape-circle">Data Collection</div>
|
53 |
<div class="shape-box">Simple EDA</div>
|
|
|
119 |
"Monitoring",
|
120 |
"Monitoring the deployed model's performance and maintaining its accuracy."
|
121 |
)
|
122 |
+
|
123 |
+
|