LakshmiHarika commited on
Commit
edfd8a0
·
verified ·
1 Parent(s): 7968646

Update pages/3Life Cycle of Machine Learning Project.py

Browse files
pages/3Life Cycle of Machine Learning Project.py CHANGED
@@ -47,27 +47,26 @@ st.markdown("""
47
 
48
  import streamlit as st
49
 
50
- # Inject custom CSS for the circular flowchart
51
  st.markdown(
52
  """
53
  <style>
54
- .circular-flowchart {
55
  position: relative;
56
- width: 1000px; /* Layout size */
57
- height: 900px; /* Reduced height to adjust bottom spacing */
58
  margin: 0 auto;
59
  display: flex;
60
- justify-content: center;
61
  align-items: center;
62
  }
63
 
64
  /* Styling for each phase (circle) */
65
  .phase {
66
- position: absolute;
67
  width: 130px; /* Circle size */
68
  height: 130px;
69
  background-color: #F8F9FA; /* Light background */
70
- color: #343A40; /* Dark text */
71
  border-radius: 50%;
72
  display: flex;
73
  justify-content: center;
@@ -76,21 +75,31 @@ st.markdown(
76
  font-weight: bold;
77
  text-align: center;
78
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
79
- cursor: pointer;
80
- transition: transform 0.3s ease, background 0.3s ease;
 
 
 
 
 
 
 
 
 
 
81
  }
82
 
83
- /* Adjusted positions for better flow */
84
- .phase-1 { top: 100px; left: 500px; background-color: #4CAF50; } /* Top-center */
85
- .phase-2 { top: 180px; left: 650px; background-color: #03A9F4; } /* Top-right */
86
- .phase-3 { top: 300px; left: 750px; background-color: #FFC107; } /* Mid-right */
87
- .phase-4 { top: 500px; left: 680px; background-color: #FF7043; } /* Lower-right */
88
- .phase-5 { top: 640px; left: 500px; background-color: #8BC34A; } /* Bottom-center */
89
- .phase-6 { top: 500px; left: 320px; background-color: #673AB7; } /* Lower-left */
90
- .phase-7 { top: 300px; left: 220px; background-color: #E91E63; } /* Mid-left */
91
- .phase-8 { top: 180px; left: 300px; background-color: #607D8B; } /* Top-left */
92
- .phase-9 { top: 130px; left: 420px; background-color: #00BCD4; } /* Between Top-left and Top */
93
- .phase-10 { top: 130px; left: 580px; background-color: #FF9800; } /* Between Top and Top-right */
94
 
95
  .phase:hover {
96
  transform: scale(1.1);
@@ -101,21 +110,30 @@ st.markdown(
101
  unsafe_allow_html=True,
102
  )
103
 
104
- # HTML structure for the circular flowchart
105
  st.markdown(
106
  """
107
- <div class="circular-flowchart">
108
  <!-- Phases -->
109
- <a class="phase phase-1" href="/problem-statement" target="_self">Problem Statement</a>
110
- <a class="phase phase-2" href="/data-collection" target="_self">Data Collection</a>
111
- <a class="phase phase-3" href="/simple-eda" target="_self">Simple EDA</a>
112
- <a class="phase phase-4" href="/data-preprocessing" target="_self">Data Preprocessing</a>
113
- <a class="phase phase-5" href="/eda" target="_self">EDA</a>
114
- <a class="phase phase-6" href="/feature-engineering" target="_self">Feature Engineering</a>
115
- <a class="phase phase-7" href="/model-training" target="_self">Model Training</a>
116
- <a class="phase phase-8" href="/model-testing" target="_self">Model Testing</a>
117
- <a class="phase phase-9" href="/deployment" target="_self">Deployment</a>
118
- <a class="phase phase-10" href="/monitoring" target="_self">Monitoring</a>
 
 
 
 
 
 
 
 
 
119
  </div>
120
  """,
121
  unsafe_allow_html=True,
 
47
 
48
  import streamlit as st
49
 
50
+ # Inject custom CSS for the straight vertical flowchart
51
  st.markdown(
52
  """
53
  <style>
54
+ .vertical-flowchart {
55
  position: relative;
56
+ width: 400px; /* Layout width */
 
57
  margin: 0 auto;
58
  display: flex;
59
+ flex-direction: column;
60
  align-items: center;
61
  }
62
 
63
  /* Styling for each phase (circle) */
64
  .phase {
65
+ position: relative;
66
  width: 130px; /* Circle size */
67
  height: 130px;
68
  background-color: #F8F9FA; /* Light background */
69
+ color: #000000; /* Black text */
70
  border-radius: 50%;
71
  display: flex;
72
  justify-content: center;
 
75
  font-weight: bold;
76
  text-align: center;
77
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
78
+ margin-bottom: 10px; /* Space between steps */
79
+ font-family: Arial, sans-serif;
80
+ }
81
+
82
+ /* Arrow styling */
83
+ .arrow {
84
+ position: relative;
85
+ width: 20px;
86
+ height: 20px;
87
+ margin: 10px 0;
88
+ font-size: 24px;
89
+ color: #000000; /* Black arrow */
90
  }
91
 
92
+ /* Custom colors for each phase */
93
+ .phase-1 { background-color: #4CAF50; } /* Green */
94
+ .phase-2 { background-color: #03A9F4; } /* Blue */
95
+ .phase-3 { background-color: #FFC107; } /* Yellow */
96
+ .phase-4 { background-color: #FF7043; } /* Orange */
97
+ .phase-5 { background-color: #8BC34A; } /* Light Green */
98
+ .phase-6 { background-color: #673AB7; } /* Purple */
99
+ .phase-7 { background-color: #E91E63; } /* Pink */
100
+ .phase-8 { background-color: #607D8B; } /* Gray-Blue */
101
+ .phase-9 { background-color: #00BCD4; } /* Cyan */
102
+ .phase-10 { background-color: #FF9800; } /* Amber */
103
 
104
  .phase:hover {
105
  transform: scale(1.1);
 
110
  unsafe_allow_html=True,
111
  )
112
 
113
+ # HTML structure for the straight flowchart
114
  st.markdown(
115
  """
116
+ <div class="vertical-flowchart">
117
  <!-- Phases -->
118
+ <div class="phase phase-1">Problem Statement</div>
119
+ <div class="arrow">⬇️</div>
120
+ <div class="phase phase-2">Data Collection</div>
121
+ <div class="arrow">⬇️</div>
122
+ <div class="phase phase-3">Simple EDA</div>
123
+ <div class="arrow">⬇️</div>
124
+ <div class="phase phase-4">Data Preprocessing</div>
125
+ <div class="arrow">⬇️</div>
126
+ <div class="phase phase-5">EDA</div>
127
+ <div class="arrow">⬇️</div>
128
+ <div class="phase phase-6">Feature Engineering</div>
129
+ <div class="arrow">⬇️</div>
130
+ <div class="phase phase-7">Model Training</div>
131
+ <div class="arrow">⬇️</div>
132
+ <div class="phase phase-8">Model Testing</div>
133
+ <div class="arrow">⬇️</div>
134
+ <div class="phase phase-9">Deployment</div>
135
+ <div class="arrow">⬇️</div>
136
+ <div class="phase phase-10">Monitoring</div>
137
  </div>
138
  """,
139
  unsafe_allow_html=True,