Update utils.py
Browse files
utils.py
CHANGED
|
@@ -9,7 +9,7 @@ def go_to(page_name, from_callback=False):
|
|
| 9 |
st.session_state.page = page_name
|
| 10 |
if not from_callback:
|
| 11 |
st.rerun()
|
| 12 |
-
st.stop()
|
| 13 |
|
| 14 |
def add_navigation(previous_page, next_page):
|
| 15 |
col1, col2, col3 = st.columns([1, 4, 1])
|
|
@@ -24,8 +24,8 @@ def add_navigation(previous_page, next_page):
|
|
| 24 |
if st.button("Next"):
|
| 25 |
go_to(next_page)
|
| 26 |
|
| 27 |
-
|
| 28 |
-
st.divider()
|
| 29 |
|
| 30 |
def add_fadein_text(paragraphs):
|
| 31 |
# Define CSS fade-in animation
|
|
@@ -54,6 +54,11 @@ def add_fadein_text(paragraphs):
|
|
| 54 |
placeholders[i].markdown(f"<div class='fade-in'>{p[0]}</div>", unsafe_allow_html=True)
|
| 55 |
time.sleep(p[1]) # delay (seconds) before showing next one
|
| 56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
# Define pipeline stages
|
| 58 |
pipeline_data = {
|
| 59 |
"Data Collection": {
|
|
|
|
| 9 |
st.session_state.page = page_name
|
| 10 |
if not from_callback:
|
| 11 |
st.rerun()
|
| 12 |
+
# st.stop()
|
| 13 |
|
| 14 |
def add_navigation(previous_page, next_page):
|
| 15 |
col1, col2, col3 = st.columns([1, 4, 1])
|
|
|
|
| 24 |
if st.button("Next"):
|
| 25 |
go_to(next_page)
|
| 26 |
|
| 27 |
+
st.markdown("---")
|
| 28 |
+
# st.divider()
|
| 29 |
|
| 30 |
def add_fadein_text(paragraphs):
|
| 31 |
# Define CSS fade-in animation
|
|
|
|
| 54 |
placeholders[i].markdown(f"<div class='fade-in'>{p[0]}</div>", unsafe_allow_html=True)
|
| 55 |
time.sleep(p[1]) # delay (seconds) before showing next one
|
| 56 |
|
| 57 |
+
def add_instruction_text(text_to_display):
|
| 58 |
+
st.markdown(f"<div style='text-align: center; font-size:18px; color:gray;'>{text_to_display}</div>", unsafe_allow_html=True)
|
| 59 |
+
|
| 60 |
+
st.markdown("---")
|
| 61 |
+
|
| 62 |
# Define pipeline stages
|
| 63 |
pipeline_data = {
|
| 64 |
"Data Collection": {
|