Spaces:
Sleeping
Sleeping
Update pages/3Life Cycle of Machine Learning Project.py
Browse files
pages/3Life Cycle of Machine Learning Project.py
CHANGED
|
@@ -51,7 +51,7 @@ import streamlit as st
|
|
| 51 |
st.markdown(
|
| 52 |
"""
|
| 53 |
<style>
|
| 54 |
-
/*
|
| 55 |
.flowchart-container {
|
| 56 |
display: flex;
|
| 57 |
flex-direction: column;
|
|
@@ -66,7 +66,7 @@ st.markdown(
|
|
| 66 |
align-items: center;
|
| 67 |
width: 280px;
|
| 68 |
height: 60px;
|
| 69 |
-
background: linear-gradient(to right, #4CAF50, #2E7D32);
|
| 70 |
color: white;
|
| 71 |
font-size: 16px;
|
| 72 |
font-weight: bold;
|
|
@@ -78,18 +78,28 @@ st.markdown(
|
|
| 78 |
font-family: 'Arial', sans-serif;
|
| 79 |
text-decoration: none;
|
| 80 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
/* Hover effect */
|
| 82 |
.phase:hover {
|
| 83 |
transform: scale(1.05);
|
| 84 |
-
|
| 85 |
}
|
| 86 |
/* Arrow styling */
|
| 87 |
.arrow {
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
transform: rotate(45deg);
|
| 93 |
}
|
| 94 |
</style>
|
| 95 |
""",
|
|
@@ -100,25 +110,25 @@ st.markdown(
|
|
| 100 |
st.markdown(
|
| 101 |
"""
|
| 102 |
<div class="flowchart-container">
|
| 103 |
-
<a class="phase" href="/page1" target="_self">π Problem Statement</a>
|
| 104 |
-
<div class="arrow"></div>
|
| 105 |
-
<a class="phase" href="/page2" target="_self">π Data Collection</a>
|
| 106 |
-
<div class="arrow"></div>
|
| 107 |
-
<a class="phase" href="/page3" target="_self">π Simple EDA</a>
|
| 108 |
-
<div class="arrow"></div>
|
| 109 |
-
<a class="phase" href="/page4" target="_self">βοΈ Data Pre-processing</a>
|
| 110 |
-
<div class="arrow"></div>
|
| 111 |
-
<a class="phase" href="/page5" target="_self">π EDA</a>
|
| 112 |
-
<div class="arrow"></div>
|
| 113 |
-
<a class="phase" href="/page6" target="_self">π οΈ Feature Engineering</a>
|
| 114 |
-
<div class="arrow"></div>
|
| 115 |
-
<a class="phase" href="/page7" target="_self">π€ Training the Model</a>
|
| 116 |
-
<div class="arrow"></div>
|
| 117 |
-
<a class="phase" href="/page8" target="_self">β
Testing the Model</a>
|
| 118 |
-
<div class="arrow"></div>
|
| 119 |
-
<a class="phase" href="/page9" target="_self">βοΈ Deployment</a>
|
| 120 |
-
<div class="arrow"></div>
|
| 121 |
-
<a class="phase" href="/page10" target="_self">π Monitoring</a>
|
| 122 |
</div>
|
| 123 |
""",
|
| 124 |
unsafe_allow_html=True,
|
|
|
|
| 51 |
st.markdown(
|
| 52 |
"""
|
| 53 |
<style>
|
| 54 |
+
/* Main container for the flowchart */
|
| 55 |
.flowchart-container {
|
| 56 |
display: flex;
|
| 57 |
flex-direction: column;
|
|
|
|
| 66 |
align-items: center;
|
| 67 |
width: 280px;
|
| 68 |
height: 60px;
|
| 69 |
+
background: linear-gradient(to right, #4CAF50, #2E7D32); /* Default green gradient */
|
| 70 |
color: white;
|
| 71 |
font-size: 16px;
|
| 72 |
font-weight: bold;
|
|
|
|
| 78 |
font-family: 'Arial', sans-serif;
|
| 79 |
text-decoration: none;
|
| 80 |
}
|
| 81 |
+
/* Different colors for each button */
|
| 82 |
+
.phase-1 { background: linear-gradient(to right, #FF6347, #FF4500); } /* Red gradient */
|
| 83 |
+
.phase-2 { background: linear-gradient(to right, #FFD700, #FFA500); } /* Yellow gradient */
|
| 84 |
+
.phase-3 { background: linear-gradient(to right, #32CD32, #228B22); } /* Green gradient */
|
| 85 |
+
.phase-4 { background: linear-gradient(to right, #8A2BE2, #4B0082); } /* Purple gradient */
|
| 86 |
+
.phase-5 { background: linear-gradient(to right, #D76AC3, #C70039); } /* Pink gradient */
|
| 87 |
+
.phase-6 { background: linear-gradient(to right, #00CED1, #008B8B); } /* Cyan gradient */
|
| 88 |
+
.phase-7 { background: linear-gradient(to right, #DC143C, #B22222); } /* Crimson gradient */
|
| 89 |
+
.phase-8 { background: linear-gradient(to right, #9932CC, #4B0082); } /* Indigo gradient */
|
| 90 |
+
.phase-9 { background: linear-gradient(to right, #43A047, #1B5E20); } /* Dark green gradient */
|
| 91 |
+
.phase-10 { background: linear-gradient(to right, #D2691E, #8B4513); } /* Brown gradient */
|
| 92 |
/* Hover effect */
|
| 93 |
.phase:hover {
|
| 94 |
transform: scale(1.05);
|
| 95 |
+
opacity: 0.9;
|
| 96 |
}
|
| 97 |
/* Arrow styling */
|
| 98 |
.arrow {
|
| 99 |
+
font-size: 30px;
|
| 100 |
+
color: #4CAF50; /* Default green color for arrow */
|
| 101 |
+
text-align: center;
|
| 102 |
+
margin: -10px 0;
|
|
|
|
| 103 |
}
|
| 104 |
</style>
|
| 105 |
""",
|
|
|
|
| 110 |
st.markdown(
|
| 111 |
"""
|
| 112 |
<div class="flowchart-container">
|
| 113 |
+
<a class="phase phase-1" href="/page1" target="_self">π Problem Statement</a>
|
| 114 |
+
<div class="arrow">β¬οΈ</div>
|
| 115 |
+
<a class="phase phase-2" href="/page2" target="_self">π Data Collection</a>
|
| 116 |
+
<div class="arrow">β¬οΈ</div>
|
| 117 |
+
<a class="phase phase-3" href="/page3" target="_self">π Simple EDA</a>
|
| 118 |
+
<div class="arrow">β¬οΈ</div>
|
| 119 |
+
<a class="phase phase-4" href="/page4" target="_self">βοΈ Data Pre-processing</a>
|
| 120 |
+
<div class="arrow">β¬οΈ</div>
|
| 121 |
+
<a class="phase phase-5" href="/page5" target="_self">π EDA</a>
|
| 122 |
+
<div class="arrow">β¬οΈ</div>
|
| 123 |
+
<a class="phase phase-6" href="/page6" target="_self">π οΈ Feature Engineering</a>
|
| 124 |
+
<div class="arrow">β¬οΈ</div>
|
| 125 |
+
<a class="phase phase-7" href="/page7" target="_self">π€ Training the Model</a>
|
| 126 |
+
<div class="arrow">β¬οΈ</div>
|
| 127 |
+
<a class="phase phase-8" href="/page8" target="_self">β
Testing the Model</a>
|
| 128 |
+
<div class="arrow">β¬οΈ</div>
|
| 129 |
+
<a class="phase phase-9" href="/page9" target="_self">βοΈ Deployment</a>
|
| 130 |
+
<div class="arrow">β¬οΈ</div>
|
| 131 |
+
<a class="phase phase-10" href="/page10" target="_self">π Monitoring</a>
|
| 132 |
</div>
|
| 133 |
""",
|
| 134 |
unsafe_allow_html=True,
|