Spaces:
Sleeping
Sleeping
Fernando Knüttel commited on
Commit ·
f996faf
1
Parent(s): 17c742f
fixing it on different way
Browse files- src/streamlit_app.py +6 -2
src/streamlit_app.py
CHANGED
|
@@ -79,9 +79,10 @@ if check_password():
|
|
| 79 |
|
| 80 |
|
| 81 |
if "confirmed" not in st.session_state:
|
|
|
|
| 82 |
st.session_state.confirmed = False
|
| 83 |
|
| 84 |
-
if not st.session_state.
|
| 85 |
st.set_page_config(page_title="A different kind of application", layout="wide")
|
| 86 |
|
| 87 |
|
|
@@ -146,8 +147,11 @@ if check_password():
|
|
| 146 |
|
| 147 |
if elapsed < min_loader_time:
|
| 148 |
time.sleep(min_loader_time - elapsed)
|
|
|
|
|
|
|
|
|
|
| 149 |
|
| 150 |
-
|
| 151 |
st.markdown(
|
| 152 |
"""
|
| 153 |
<style>
|
|
|
|
| 79 |
|
| 80 |
|
| 81 |
if "confirmed" not in st.session_state:
|
| 82 |
+
st.session_state.splash = False
|
| 83 |
st.session_state.confirmed = False
|
| 84 |
|
| 85 |
+
if not st.session_state.splash:
|
| 86 |
st.set_page_config(page_title="A different kind of application", layout="wide")
|
| 87 |
|
| 88 |
|
|
|
|
| 147 |
|
| 148 |
if elapsed < min_loader_time:
|
| 149 |
time.sleep(min_loader_time - elapsed)
|
| 150 |
+
|
| 151 |
+
st.session_state.splash = True
|
| 152 |
+
st.rerun()
|
| 153 |
|
| 154 |
+
elif not st.session_state.confirmed:
|
| 155 |
st.markdown(
|
| 156 |
"""
|
| 157 |
<style>
|