Phaneendrabayi commited on
Commit
02ad7a0
·
verified ·
1 Parent(s): c62ab15

Update pages/Life_cycle_of_ML.py

Browse files
Files changed (1) hide show
  1. pages/Life_cycle_of_ML.py +1 -24
pages/Life_cycle_of_ML.py CHANGED
@@ -9,29 +9,6 @@ Welcome to an interactive journey through the **Life Cycle of an ML Project**!
9
  Click on each step to uncover its details and an example to make the concepts clearer.
10
  """)
11
 
12
- st.markdown(
13
- """
14
- <style>
15
- .button {
16
- display: inline-block;
17
- background-color: #f0f0f0;
18
- border: 1px solid #ccc;
19
- border-radius: 5px;
20
- padding: 10px 20px;
21
- margin: 5px 0;
22
- text-align: center;
23
- font-size: 16px;
24
- color: #000;
25
- width: 100%; /* Ensure all buttons take the same width */
26
- cursor: pointer;
27
- }
28
- .button:hover {
29
- background-color: #ddd;
30
- }
31
- </style>
32
- """,
33
- unsafe_allow_html=True,
34
- )
35
 
36
  # Steps in the ML Project Lifecycle
37
  steps = {
@@ -87,7 +64,7 @@ steps = {
87
 
88
  # Button-based interaction
89
  for step, (description, example) in steps.items():
90
- if st.markdown(f'<div class="button" onclick="window.location.reload();">{step}</div>', unsafe_allow_html=True): # Display the step title as a button
91
  st.subheader(step)
92
  st.write(description)
93
  st.markdown(f"**Example:** {example}")
 
9
  Click on each step to uncover its details and an example to make the concepts clearer.
10
  """)
11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
  # Steps in the ML Project Lifecycle
14
  steps = {
 
64
 
65
  # Button-based interaction
66
  for step, (description, example) in steps.items():
67
+ if st.button(step): # Display the step title as a button
68
  st.subheader(step)
69
  st.write(description)
70
  st.markdown(f"**Example:** {example}")