LakshmiHarika commited on
Commit
b4ef320
·
verified ·
1 Parent(s): 00af462

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

Browse files
pages/3Life Cycle of Machine Learning Project.py CHANGED
@@ -47,7 +47,9 @@ st.markdown("""
47
 
48
 
49
 
50
- # CSS for Circular Buttons with Arrows
 
 
51
  custom_css = """
52
  <style>
53
  .circle-container {
@@ -80,32 +82,21 @@ custom_css = """
80
  transform: scale(1.1);
81
  background: #444;
82
  }
83
- /* Adjust button positions for a perfect circle */
84
- .button:nth-child(1) { top: 0%; left: 50%; transform: translate(-50%, -50%); } /* Top */
85
  .button:nth-child(2) { top: 20%; left: 80%; transform: translate(-50%, -50%); }
86
- .button:nth-child(3) { top: 50%; left: 100%; transform: translate(-50%, -50%); }
87
  .button:nth-child(4) { top: 80%; left: 80%; transform: translate(-50%, -50%); }
88
- .button:nth-child(5) { top: 100%; left: 50%; transform: translate(-50%, -50%); } /* Bottom */
89
  .button:nth-child(6) { top: 80%; left: 20%; transform: translate(-50%, -50%); }
90
- .button:nth-child(7) { top: 50%; left: 0%; transform: translate(-50%, -50%); }
91
  .button:nth-child(8) { top: 20%; left: 20%; transform: translate(-50%, -50%); }
92
- .button:nth-child(9) { top: 50%; left: 50%; transform: translate(-50%, -50%); }
93
- .button:nth-child(10) { top: 40%; left: 50%; transform: translate(-50%, -50%); }
94
-
95
- /* Arrow design */
96
- .arrow {
97
- position: absolute;
98
- width: 50px;
99
- height: 50px;
100
- border: 2px solid black;
101
- border-width: 3px 3px 0 0;
102
- transform: rotate(45deg);
103
- z-index: -1;
104
- }
105
  </style>
106
  """
107
 
108
- # HTML for Buttons with Arrows
109
  ml_lifecycle_html = """
110
  <div class="circle-container">
111
  <a href="?step=1" class="button">Step 1</a>
@@ -125,14 +116,14 @@ ml_lifecycle_html = """
125
  st.markdown(custom_css, unsafe_allow_html=True)
126
  st.markdown(ml_lifecycle_html, unsafe_allow_html=True)
127
 
128
- # Query parameters to determine which step is selected
129
  query_params = st.experimental_get_query_params()
130
- step = query_params.get("step", [""])[0]
131
 
132
  # Display dynamic content for each step
133
- if step:
134
- st.write(f"## You selected Step {step}")
135
- st.write(f"Details about Step {step} go here...")
136
  else:
137
  st.write("## Welcome to the ML Lifecycle!")
138
  st.write("Click on any step to view details.")
 
47
 
48
 
49
 
50
+ import streamlit as st
51
+
52
+ # CSS for Circular Buttons and Layout
53
  custom_css = """
54
  <style>
55
  .circle-container {
 
82
  transform: scale(1.1);
83
  background: #444;
84
  }
85
+ /* Perfect circular positions */
86
+ .button:nth-child(1) { top: 10%; left: 50%; transform: translate(-50%, -50%); } /* Top */
87
  .button:nth-child(2) { top: 20%; left: 80%; transform: translate(-50%, -50%); }
88
+ .button:nth-child(3) { top: 50%; left: 90%; transform: translate(-50%, -50%); }
89
  .button:nth-child(4) { top: 80%; left: 80%; transform: translate(-50%, -50%); }
90
+ .button:nth-child(5) { top: 90%; left: 50%; transform: translate(-50%, -50%); } /* Bottom */
91
  .button:nth-child(6) { top: 80%; left: 20%; transform: translate(-50%, -50%); }
92
+ .button:nth-child(7) { top: 50%; left: 10%; transform: translate(-50%, -50%); }
93
  .button:nth-child(8) { top: 20%; left: 20%; transform: translate(-50%, -50%); }
94
+ .button:nth-child(9) { top: 40%; left: 70%; transform: translate(-50%, -50%); }
95
+ .button:nth-child(10) { top: 40%; left: 30%; transform: translate(-50%, -50%); }
 
 
 
 
 
 
 
 
 
 
 
96
  </style>
97
  """
98
 
99
+ # HTML for Buttons
100
  ml_lifecycle_html = """
101
  <div class="circle-container">
102
  <a href="?step=1" class="button">Step 1</a>
 
116
  st.markdown(custom_css, unsafe_allow_html=True)
117
  st.markdown(ml_lifecycle_html, unsafe_allow_html=True)
118
 
119
+ # Query parameters to determine the selected step
120
  query_params = st.experimental_get_query_params()
121
+ selected_step = query_params.get("step", [""])[0]
122
 
123
  # Display dynamic content for each step
124
+ if selected_step:
125
+ st.write(f"## You selected Step {selected_step}")
126
+ st.write(f"Details about Step {selected_step} go here...")
127
  else:
128
  st.write("## Welcome to the ML Lifecycle!")
129
  st.write("Click on any step to view details.")