Spaces:
Sleeping
Sleeping
Update pages/3Life Cycle of Machine Learning Project.py
Browse files
pages/3Life Cycle of Machine Learning Project.py
CHANGED
|
@@ -49,7 +49,7 @@ st.markdown("""
|
|
| 49 |
|
| 50 |
import streamlit as st
|
| 51 |
|
| 52 |
-
# CSS for Circular Buttons and
|
| 53 |
custom_css = """
|
| 54 |
<style>
|
| 55 |
.circle-container {
|
|
@@ -83,20 +83,31 @@ custom_css = """
|
|
| 83 |
background: #444;
|
| 84 |
}
|
| 85 |
/* Perfect circular positions */
|
| 86 |
-
.button:nth-child(1) { top:
|
| 87 |
-
.button:nth-child(2) { top: 20%; left:
|
| 88 |
.button:nth-child(3) { top: 50%; left: 90%; transform: translate(-50%, -50%); }
|
| 89 |
-
.button:nth-child(4) { top: 80%; left:
|
| 90 |
-
.button:nth-child(5) { top:
|
| 91 |
-
.button:nth-child(6) { top: 80%; left:
|
| 92 |
.button:nth-child(7) { top: 50%; left: 10%; transform: translate(-50%, -50%); }
|
| 93 |
-
.button:nth-child(8) { top: 20%; left:
|
| 94 |
-
.button:nth-child(9) { top:
|
| 95 |
-
.button:nth-child(10) { top:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>
|
|
@@ -117,7 +128,7 @@ 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.
|
| 121 |
selected_step = query_params.get("step", [""])[0]
|
| 122 |
|
| 123 |
# Display dynamic content for each step
|
|
|
|
| 49 |
|
| 50 |
import streamlit as st
|
| 51 |
|
| 52 |
+
# CSS for Circular Buttons and Arrows
|
| 53 |
custom_css = """
|
| 54 |
<style>
|
| 55 |
.circle-container {
|
|
|
|
| 83 |
background: #444;
|
| 84 |
}
|
| 85 |
/* Perfect circular positions */
|
| 86 |
+
.button:nth-child(1) { top: 5%; left: 50%; transform: translate(-50%, -50%); } /* Top */
|
| 87 |
+
.button:nth-child(2) { top: 20%; left: 75%; 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: 75%; transform: translate(-50%, -50%); }
|
| 90 |
+
.button:nth-child(5) { top: 95%; left: 50%; transform: translate(-50%, -50%); } /* Bottom */
|
| 91 |
+
.button:nth-child(6) { top: 80%; left: 25%; 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: 25%; transform: translate(-50%, -50%); }
|
| 94 |
+
.button:nth-child(9) { top: 10%; left: 65%; transform: translate(-50%, -50%); }
|
| 95 |
+
.button:nth-child(10) { top: 30%; left: 35%; transform: translate(-50%, -50%); }
|
| 96 |
+
|
| 97 |
+
/* Arrows between steps */
|
| 98 |
+
.arrow {
|
| 99 |
+
position: absolute;
|
| 100 |
+
width: 50px;
|
| 101 |
+
height: 50px;
|
| 102 |
+
border: 2px solid black;
|
| 103 |
+
border-width: 3px 3px 0 0;
|
| 104 |
+
transform: rotate(45deg);
|
| 105 |
+
z-index: -1;
|
| 106 |
+
}
|
| 107 |
</style>
|
| 108 |
"""
|
| 109 |
|
| 110 |
+
# HTML for Buttons with Arrows
|
| 111 |
ml_lifecycle_html = """
|
| 112 |
<div class="circle-container">
|
| 113 |
<a href="?step=1" class="button">Step 1</a>
|
|
|
|
| 128 |
st.markdown(ml_lifecycle_html, unsafe_allow_html=True)
|
| 129 |
|
| 130 |
# Query parameters to determine the selected step
|
| 131 |
+
query_params = st.query_params
|
| 132 |
selected_step = query_params.get("step", [""])[0]
|
| 133 |
|
| 134 |
# Display dynamic content for each step
|