Spaces:
Sleeping
Sleeping
Update pages/3Life Cycle of Machine Learning Project.py
Browse files
pages/3Life Cycle of Machine Learning Project.py
CHANGED
|
@@ -46,56 +46,80 @@ st.markdown("""
|
|
| 46 |
|
| 47 |
|
| 48 |
import streamlit as st
|
| 49 |
-
from streamlit.components.v1 import html
|
| 50 |
|
| 51 |
-
#
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
)
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
-
#
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
|
| 48 |
import streamlit as st
|
|
|
|
| 49 |
|
| 50 |
+
# Inject custom CSS
|
| 51 |
+
st.markdown(
|
| 52 |
+
"""
|
| 53 |
+
<style>
|
| 54 |
+
/* Container for the flowchart */
|
| 55 |
+
.flowchart-container {
|
| 56 |
+
display: flex;
|
| 57 |
+
flex-direction: column;
|
| 58 |
+
align-items: center;
|
| 59 |
+
gap: 20px;
|
| 60 |
+
margin-top: 50px;
|
| 61 |
+
}
|
| 62 |
+
/* Styling for each phase button */
|
| 63 |
+
.phase {
|
| 64 |
+
display: flex;
|
| 65 |
+
justify-content: center;
|
| 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;
|
| 73 |
+
text-align: center;
|
| 74 |
+
border-radius: 10px;
|
| 75 |
+
cursor: pointer;
|
| 76 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
| 77 |
+
transition: transform 0.3s ease, background 0.3s ease;
|
| 78 |
+
font-family: 'Arial', sans-serif;
|
| 79 |
+
text-decoration: none;
|
| 80 |
+
}
|
| 81 |
+
/* Hover effect */
|
| 82 |
+
.phase:hover {
|
| 83 |
+
transform: scale(1.05);
|
| 84 |
+
background: linear-gradient(to right, #FF7043, #D32F2F);
|
| 85 |
+
}
|
| 86 |
+
/* Arrow styling */
|
| 87 |
+
.arrow {
|
| 88 |
+
width: 20px;
|
| 89 |
+
height: 20px;
|
| 90 |
+
border-bottom: 4px solid #4CAF50;
|
| 91 |
+
border-right: 4px solid #4CAF50;
|
| 92 |
+
transform: rotate(45deg);
|
| 93 |
+
}
|
| 94 |
+
</style>
|
| 95 |
+
""",
|
| 96 |
+
unsafe_allow_html=True,
|
| 97 |
+
)
|
| 98 |
|
| 99 |
+
# HTML for the flowchart structure
|
| 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,
|
| 125 |
+
)
|