Spaces:
Sleeping
Sleeping
Update pages/3Life Cycle of Machine Learning Project.py
Browse files
pages/3Life Cycle of Machine Learning Project.py
CHANGED
|
@@ -47,7 +47,7 @@ st.markdown("""
|
|
| 47 |
import streamlit as st
|
| 48 |
import math
|
| 49 |
|
| 50 |
-
# CSS for Buttons and Layout
|
| 51 |
custom_css = """
|
| 52 |
<style>
|
| 53 |
.circle-container {
|
|
@@ -89,8 +89,8 @@ buttons_html = ""
|
|
| 89 |
|
| 90 |
for i in range(10):
|
| 91 |
angle = 2 * math.pi * i / 10 # Angle in radians for each button
|
| 92 |
-
x = center_x + radius * math.cos(angle) - 40 #
|
| 93 |
-
y = center_y + radius * math.sin(angle) - 40 #
|
| 94 |
buttons_html += f"""
|
| 95 |
<div class="circle-button" style="top: {y}px; left: {x}px;">Step {i + 1}</div>
|
| 96 |
"""
|
|
@@ -105,13 +105,3 @@ html_content = f"""
|
|
| 105 |
st.markdown(custom_css, unsafe_allow_html=True)
|
| 106 |
st.markdown(html_content, unsafe_allow_html=True)
|
| 107 |
|
| 108 |
-
# Optional: Add functionality for each step
|
| 109 |
-
query_params = st.query_params
|
| 110 |
-
selected_step = query_params.get("step", [""])[0]
|
| 111 |
-
|
| 112 |
-
if selected_step:
|
| 113 |
-
st.write(f"## You selected Step {selected_step}")
|
| 114 |
-
st.write(f"Details about Step {selected_step} go here...")
|
| 115 |
-
else:
|
| 116 |
-
st.write("## Welcome to the ML Lifecycle!")
|
| 117 |
-
st.write("Click on any step to view details.")
|
|
|
|
| 47 |
import streamlit as st
|
| 48 |
import math
|
| 49 |
|
| 50 |
+
# CSS for Circular Buttons and Layout
|
| 51 |
custom_css = """
|
| 52 |
<style>
|
| 53 |
.circle-container {
|
|
|
|
| 89 |
|
| 90 |
for i in range(10):
|
| 91 |
angle = 2 * math.pi * i / 10 # Angle in radians for each button
|
| 92 |
+
x = center_x + radius * math.cos(angle) - 40 # Adjust for button center
|
| 93 |
+
y = center_y + radius * math.sin(angle) - 40 # Adjust for button center
|
| 94 |
buttons_html += f"""
|
| 95 |
<div class="circle-button" style="top: {y}px; left: {x}px;">Step {i + 1}</div>
|
| 96 |
"""
|
|
|
|
| 105 |
st.markdown(custom_css, unsafe_allow_html=True)
|
| 106 |
st.markdown(html_content, unsafe_allow_html=True)
|
| 107 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|