Harika22 commited on
Commit
8811141
Β·
verified Β·
1 Parent(s): 8dc6b59

Update pages/3_Life cycle of ML.py

Browse files
Files changed (1) hide show
  1. pages/3_Life cycle of ML.py +2 -9
pages/3_Life cycle of ML.py CHANGED
@@ -2,14 +2,10 @@ import streamlit as st
2
  from PIL import Image
3
 
4
  def main():
5
- # Set up the app title and layout
6
  st.set_page_config(page_title="ML Lifecycle", layout="wide")
7
 
8
- # Header section with title and subtitle
9
- st.title("πŸš€ Machine Learning Lifecycle: 10 Steps")
10
- st.markdown("### A visually engaging journey through the ML lifecycle")
11
 
12
- # Step descriptions and icons
13
  steps = [
14
  {"title": "1. Problem Definition", "description": "Objective of the project.", "icon": "πŸ”"},
15
  {"title": "2. Data Collection", "description": "Data is collected from various sources like APIs, databases, or web scraping atlast we've to go with manual collection.", "icon": "πŸ“Š"},
@@ -23,18 +19,15 @@ def main():
23
  {"title": "10. Monitoring & Maintenance", "description": "Monitor the model and update as needed.", "icon": "πŸ“‘"}
24
  ]
25
 
26
- # Sidebar with navigation
27
  st.sidebar.title("Navigate the Lifecycle")
28
  selected_step = st.sidebar.radio("Steps", [step['title'] for step in steps])
29
 
30
- # Display the selected step's details
31
  for step in steps:
32
  if step['title'] == selected_step:
33
  st.subheader(f"{step['icon']} {step['title']}")
34
  st.markdown(step['description'])
35
 
36
- # Full timeline view
37
- st.markdown("### Full Timeline")
38
  cols = st.columns(10)
39
 
40
  for idx, step in enumerate(steps):
 
2
  from PIL import Image
3
 
4
  def main():
 
5
  st.set_page_config(page_title="ML Lifecycle", layout="wide")
6
 
7
+ st.title("πŸš€ Machine Learning Lifecycle")
 
 
8
 
 
9
  steps = [
10
  {"title": "1. Problem Definition", "description": "Objective of the project.", "icon": "πŸ”"},
11
  {"title": "2. Data Collection", "description": "Data is collected from various sources like APIs, databases, or web scraping atlast we've to go with manual collection.", "icon": "πŸ“Š"},
 
19
  {"title": "10. Monitoring & Maintenance", "description": "Monitor the model and update as needed.", "icon": "πŸ“‘"}
20
  ]
21
 
 
22
  st.sidebar.title("Navigate the Lifecycle")
23
  selected_step = st.sidebar.radio("Steps", [step['title'] for step in steps])
24
 
 
25
  for step in steps:
26
  if step['title'] == selected_step:
27
  st.subheader(f"{step['icon']} {step['title']}")
28
  st.markdown(step['description'])
29
 
30
+ st.markdown("###Steps")
 
31
  cols = st.columns(10)
32
 
33
  for idx, step in enumerate(steps):