Spaces:
Sleeping
Sleeping
Update pages/3Life Cycle of Machine Learning Project.py
Browse files
pages/3Life Cycle of Machine Learning Project.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
-
# Set page configuration
|
| 4 |
st.set_page_config(
|
| 5 |
page_title="HomePage",
|
| 6 |
page_icon="🚀",
|
|
@@ -8,7 +7,7 @@ st.set_page_config(
|
|
| 8 |
)
|
| 9 |
|
| 10 |
# Global CSS for consistent styling across all pages
|
| 11 |
-
st.markdown("""
|
| 12 |
<style>
|
| 13 |
body, .stApp {
|
| 14 |
color: #4F4F4F; /* Replace with your desired font color */
|
|
@@ -26,8 +25,8 @@ st.markdown("""
|
|
| 26 |
</style>
|
| 27 |
""", unsafe_allow_html=True)
|
| 28 |
|
| 29 |
-
|
| 30 |
-
|
| 31 |
<style>
|
| 32 |
.stApp {
|
| 33 |
background-image: url("https://huggingface.co/spaces/LakshmiHarika/MachineLearning/resolve/main/DALL%C2%B7E%202024-12-03%2023.34.47%20-%20A%20simple%20and%20elegant%20background%20image%20for%20an%20AI-themed%20web%20application.%20The%20background%20should%20feature%20a%20soft%20gradient%20transitioning%20from%20white%20to%20ligh.webp");
|
|
@@ -36,14 +35,17 @@ st.markdown("""
|
|
| 36 |
background-attachment: fixed;
|
| 37 |
}
|
| 38 |
</style>
|
| 39 |
-
""",
|
|
|
|
|
|
|
| 40 |
|
| 41 |
# Title of the page
|
| 42 |
-
st.markdown("""<div style="text-align: center; margin-top: 20px;">
|
| 43 |
-
|
|
|
|
| 44 |
|
| 45 |
-
#
|
| 46 |
-
|
| 47 |
<!DOCTYPE html>
|
| 48 |
<html lang="en">
|
| 49 |
<head>
|
|
@@ -58,7 +60,7 @@ html_code_updated = """
|
|
| 58 |
align-items: center;
|
| 59 |
height: 100vh;
|
| 60 |
margin: 0;
|
| 61 |
-
background-color: #
|
| 62 |
}
|
| 63 |
.container {
|
| 64 |
text-align: center;
|
|
@@ -85,8 +87,8 @@ html_code_updated = """
|
|
| 85 |
flex-wrap: wrap;
|
| 86 |
}
|
| 87 |
.step {
|
| 88 |
-
background-color:
|
| 89 |
-
color:
|
| 90 |
padding: 15px 30px;
|
| 91 |
border-radius: 8px;
|
| 92 |
cursor: pointer;
|
|
@@ -100,31 +102,93 @@ html_code_updated = """
|
|
| 100 |
transition: transform 0.5s ease-in-out;
|
| 101 |
}
|
| 102 |
.step:hover {
|
| 103 |
-
background-color:
|
| 104 |
-
}
|
| 105 |
-
|
| 106 |
-
#
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
#
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
a {
|
| 116 |
-
color:
|
| 117 |
text-decoration: none;
|
| 118 |
}
|
| 119 |
a:hover {
|
| 120 |
-
color: yellow;
|
| 121 |
-
text-decoration: underline;
|
| 122 |
}
|
| 123 |
</style>
|
| 124 |
</head>
|
| 125 |
<body>
|
| 126 |
<div class="container">
|
| 127 |
-
<h1
|
| 128 |
<div class="circle">
|
| 129 |
<div class="steps">
|
| 130 |
<div class="step" id="step1">1. Problem Statement</div>
|
|
@@ -144,5 +208,11 @@ html_code_updated = """
|
|
| 144 |
</html>
|
| 145 |
"""
|
| 146 |
|
| 147 |
-
# Streamlit: Display the
|
| 148 |
-
st.markdown(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
|
|
|
| 3 |
st.set_page_config(
|
| 4 |
page_title="HomePage",
|
| 5 |
page_icon="🚀",
|
|
|
|
| 7 |
)
|
| 8 |
|
| 9 |
# Global CSS for consistent styling across all pages
|
| 10 |
+
st.markdown("""
|
| 11 |
<style>
|
| 12 |
body, .stApp {
|
| 13 |
color: #4F4F4F; /* Replace with your desired font color */
|
|
|
|
| 25 |
</style>
|
| 26 |
""", unsafe_allow_html=True)
|
| 27 |
|
| 28 |
+
st.markdown(
|
| 29 |
+
"""
|
| 30 |
<style>
|
| 31 |
.stApp {
|
| 32 |
background-image: url("https://huggingface.co/spaces/LakshmiHarika/MachineLearning/resolve/main/DALL%C2%B7E%202024-12-03%2023.34.47%20-%20A%20simple%20and%20elegant%20background%20image%20for%20an%20AI-themed%20web%20application.%20The%20background%20should%20feature%20a%20soft%20gradient%20transitioning%20from%20white%20to%20ligh.webp");
|
|
|
|
| 35 |
background-attachment: fixed;
|
| 36 |
}
|
| 37 |
</style>
|
| 38 |
+
""",
|
| 39 |
+
unsafe_allow_html=True
|
| 40 |
+
)
|
| 41 |
|
| 42 |
# Title of the page
|
| 43 |
+
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)
|
| 44 |
+
|
| 45 |
+
|
| 46 |
|
| 47 |
+
# Circle Representation HTML and CSS (properly rendered)
|
| 48 |
+
html_code = """
|
| 49 |
<!DOCTYPE html>
|
| 50 |
<html lang="en">
|
| 51 |
<head>
|
|
|
|
| 60 |
align-items: center;
|
| 61 |
height: 100vh;
|
| 62 |
margin: 0;
|
| 63 |
+
background-color: #f4f4f9;
|
| 64 |
}
|
| 65 |
.container {
|
| 66 |
text-align: center;
|
|
|
|
| 87 |
flex-wrap: wrap;
|
| 88 |
}
|
| 89 |
.step {
|
| 90 |
+
background-color: #007bff;
|
| 91 |
+
color: white;
|
| 92 |
padding: 15px 30px;
|
| 93 |
border-radius: 8px;
|
| 94 |
cursor: pointer;
|
|
|
|
| 102 |
transition: transform 0.5s ease-in-out;
|
| 103 |
}
|
| 104 |
.step:hover {
|
| 105 |
+
background-color: #0056b3;
|
| 106 |
+
}
|
| 107 |
+
/* Different background colors for each step */
|
| 108 |
+
#step1 {
|
| 109 |
+
background-color: #FFCCCC;
|
| 110 |
+
transform: rotate(0deg) translateX(140px) rotate(0deg);
|
| 111 |
+
}
|
| 112 |
+
#step2 {
|
| 113 |
+
background-color: #FFDD99;
|
| 114 |
+
transform: rotate(36deg) translateX(140px) rotate(-36deg);
|
| 115 |
+
}
|
| 116 |
+
#step3 {
|
| 117 |
+
background-color: #FFFF99;
|
| 118 |
+
transform: rotate(72deg) translateX(140px) rotate(-72deg);
|
| 119 |
+
}
|
| 120 |
+
#step4 {
|
| 121 |
+
background-color: #CCFFCC;
|
| 122 |
+
transform: rotate(108deg) translateX(140px) rotate(-108deg);
|
| 123 |
+
}
|
| 124 |
+
#step5 {
|
| 125 |
+
background-color: #CCE5FF;
|
| 126 |
+
transform: rotate(144deg) translateX(140px) rotate(-144deg);
|
| 127 |
+
}
|
| 128 |
+
#step6 {
|
| 129 |
+
background-color: #E5CCFF;
|
| 130 |
+
transform: rotate(180deg) translateX(140px) rotate(-180deg);
|
| 131 |
+
}
|
| 132 |
+
#step7 {
|
| 133 |
+
background-color: #FFD9E6;
|
| 134 |
+
transform: rotate(216deg) translateX(140px) rotate(-216deg);
|
| 135 |
+
}
|
| 136 |
+
#step8 {
|
| 137 |
+
background-color: #FFF5CC;
|
| 138 |
+
transform: rotate(252deg) translateX(140px) rotate(-252deg);
|
| 139 |
+
}
|
| 140 |
+
#step9 {
|
| 141 |
+
background-color: #D9FFF5;
|
| 142 |
+
transform: rotate(288deg) translateX(140px) rotate(-288deg);
|
| 143 |
+
}
|
| 144 |
+
#step10 {
|
| 145 |
+
background-color: #D9CCFF;
|
| 146 |
+
transform: rotate(324deg) translateX(140px) rotate(-324deg);
|
| 147 |
+
}
|
| 148 |
+
/* Rotate steps to form a circular layout */
|
| 149 |
+
#step4 {
|
| 150 |
+
transform: rotate(0deg) translateX(250px) rotate(0deg);
|
| 151 |
+
}
|
| 152 |
+
#step5 {
|
| 153 |
+
transform: rotate(25deg) translateX(250px) rotate(-25deg);
|
| 154 |
+
}
|
| 155 |
+
#step6 {
|
| 156 |
+
transform: rotate(60deg) translateX(250px) rotate(-60deg);
|
| 157 |
+
}
|
| 158 |
+
#step7 {
|
| 159 |
+
transform: rotate(120deg) translateX(250px) rotate(-120deg);
|
| 160 |
+
}
|
| 161 |
+
#step8 {
|
| 162 |
+
transform: rotate(155deg) translateX(250px) rotate(-155deg);
|
| 163 |
+
}
|
| 164 |
+
#step9 {
|
| 165 |
+
transform: rotate(180deg) translateX(250px) rotate(-180deg);
|
| 166 |
+
}
|
| 167 |
+
#step10 {
|
| 168 |
+
transform: rotate(205deg) translateX(250px) rotate(-205deg);
|
| 169 |
+
}
|
| 170 |
+
#step1 {
|
| 171 |
+
transform: rotate(240deg) translateX(250px) rotate(-240deg);
|
| 172 |
+
}
|
| 173 |
+
#step2 {
|
| 174 |
+
transform: rotate(300deg) translateX(250px) rotate(-300deg);
|
| 175 |
+
}
|
| 176 |
+
#step3 {
|
| 177 |
+
transform: rotate(335deg) translateX(250px) rotate(-335deg);
|
| 178 |
+
}
|
| 179 |
a {
|
| 180 |
+
color: white; /* Link color */
|
| 181 |
text-decoration: none;
|
| 182 |
}
|
| 183 |
a:hover {
|
| 184 |
+
color: yellow; /* Color on hover */
|
| 185 |
+
text-decoration: underline; /* Underline on hover */
|
| 186 |
}
|
| 187 |
</style>
|
| 188 |
</head>
|
| 189 |
<body>
|
| 190 |
<div class="container">
|
| 191 |
+
<h1></h1>
|
| 192 |
<div class="circle">
|
| 193 |
<div class="steps">
|
| 194 |
<div class="step" id="step1">1. Problem Statement</div>
|
|
|
|
| 208 |
</html>
|
| 209 |
"""
|
| 210 |
|
| 211 |
+
# Streamlit: Display the HTML circle with properly spaced steps
|
| 212 |
+
st.markdown(html_code, unsafe_allow_html=True)
|
| 213 |
+
st.write(' ')
|
| 214 |
+
st.write(' ')
|
| 215 |
+
st.write(' ')
|
| 216 |
+
st.write(' ')
|
| 217 |
+
st.write(' ')
|
| 218 |
+
st.write(' ')
|