LakshmiHarika commited on
Commit
a1f702a
·
verified ·
1 Parent(s): 4becf82

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

Browse files
pages/3Life Cycle of Machine Learning Project.py CHANGED
@@ -46,52 +46,74 @@ st.markdown("""
46
 
47
 
48
 
49
- if st.button("Step 1: Problem Definition"):
50
- st.experimental_set_query_params(page="problem_definition")
51
-
52
- if st.button("Step 2: Data Collection"):
53
- st.experimental_set_query_params(page="data_collection")
54
-
55
- if st.button("Step 3: Data Preparation"):
56
- st.experimental_set_query_params(page="data_preparation")
57
-
58
- if st.button("Step 4: Model Building"):
59
- st.experimental_set_query_params(page="model_building")
60
-
61
- if st.button("Step 5: Model Evaluation"):
62
- st.experimental_set_query_params(page="model_evaluation")
63
-
64
- if st.button("Step 6: Model Deployment"):
65
- st.experimental_set_query_params(page="model_deployment")
66
-
67
- if st.button("Step 7: Monitoring and Maintenance"):
68
- st.experimental_set_query_params(page="monitoring")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
 
70
- # Check for the current query parameter and redirect to the relevant page
71
  query_params = st.experimental_get_query_params()
72
- page = query_params.get("page", [""])[0]
73
-
74
- # Display corresponding content
75
- if page == "problem_definition":
76
- st.subheader("Step 1: Problem Definition")
77
- st.write("Content for Problem Definition goes here...")
78
- elif page == "data_collection":
79
- st.subheader("Step 2: Data Collection")
80
- st.write("Content for Data Collection goes here...")
81
- elif page == "data_preparation":
82
- st.subheader("Step 3: Data Preparation")
83
- st.write("Content for Data Preparation goes here...")
84
- elif page == "model_building":
85
- st.subheader("Step 4: Model Building")
86
- st.write("Content for Model Building goes here...")
87
- elif page == "model_evaluation":
88
- st.subheader("Step 5: Model Evaluation")
89
- st.write("Content for Model Evaluation goes here...")
90
- elif page == "model_deployment":
91
- st.subheader("Step 6: Model Deployment")
92
- st.write("Content for Model Deployment goes here...")
93
- elif page == "monitoring":
94
- st.subheader("Step 7: Monitoring and Maintenance")
95
- st.write("Content for Monitoring and Maintenance goes here...")
96
  else:
97
- st.write("Click on a step to view its details.")
 
46
 
47
 
48
 
49
+ st.markdown("""
50
+ <style>
51
+ .circle-container {
52
+ display: flex;
53
+ flex-direction: column;
54
+ align-items: center;
55
+ margin: 50px auto;
56
+ position: relative;
57
+ width: 300px;
58
+ height: 300px;
59
+ }
60
+ .circle-container button {
61
+ position: absolute;
62
+ border: none;
63
+ background: #f4b183;
64
+ color: white;
65
+ border-radius: 50%;
66
+ padding: 15px;
67
+ text-align: center;
68
+ cursor: pointer;
69
+ transition: all 0.3s ease-in-out;
70
+ font-weight: bold;
71
+ }
72
+ #initiation { top: 10%; left: 40%; }
73
+ #planning { top: 40%; left: 70%; }
74
+ #execution { top: 70%; left: 40%; }
75
+ #monitoring { top: 60%; left: 10%; }
76
+ #closure { top: 30%; left: 10%; }
77
+ #review { top: 40%; left: 40%; }
78
+ #initiation:hover, #planning:hover, #execution:hover,
79
+ #monitoring:hover, #closure:hover, #review:hover {
80
+ transform: scale(1.2);
81
+ background: #d57a50;
82
+ }
83
+ </style>
84
+
85
+ <div class="circle-container">
86
+ <button id="initiation" onclick="window.location.search='?step=initiation'">Initiation</button>
87
+ <button id="planning" onclick="window.location.search='?step=planning'">Planning</button>
88
+ <button id="execution" onclick="window.location.search='?step=execution'">Execution</button>
89
+ <button id="monitoring" onclick="window.location.search='?step=monitoring'">Monitoring</button>
90
+ <button id="closure" onclick="window.location.search='?step=closure'">Closure</button>
91
+ <button id="review" onclick="window.location.search='?step=review'">Review</button>
92
+ </div>
93
+ """, unsafe_allow_html=True)
94
 
95
+ # Query parameters to identify selected steps
96
  query_params = st.experimental_get_query_params()
97
+ step = query_params.get("step", [""])[0]
98
+
99
+ # Dynamic content based on selected step
100
+ if step == "initiation":
101
+ st.subheader("Step: Initiation")
102
+ st.write("This is the initiation phase where project objectives are defined.")
103
+ elif step == "planning":
104
+ st.subheader("Step: Planning")
105
+ st.write("This is the planning phase where detailed project plans are created.")
106
+ elif step == "execution":
107
+ st.subheader("Step: Execution")
108
+ st.write("This is the execution phase where the project plan is implemented.")
109
+ elif step == "monitoring":
110
+ st.subheader("Step: Monitoring")
111
+ st.write("This is the monitoring phase to track progress and adjust plans.")
112
+ elif step == "closure":
113
+ st.subheader("Step: Closure")
114
+ st.write("This is the closure phase where the project is finalized and reviewed.")
115
+ elif step == "review":
116
+ st.subheader("Step: Review")
117
+ st.write("This is the review phase where lessons learned are documented.")
 
 
 
118
  else:
119
+ st.write("Select a step to learn more about it!")