Update app.py
Browse filesdelete gotit button, collapsed sidebar
app.py
CHANGED
|
@@ -8,7 +8,7 @@ import random
|
|
| 8 |
st.set_page_config(
|
| 9 |
page_title="Bot",
|
| 10 |
page_icon="🤖",
|
| 11 |
-
initial_sidebar_state="
|
| 12 |
layout="wide"
|
| 13 |
)
|
| 14 |
st.markdown(
|
|
@@ -128,9 +128,7 @@ with st.sidebar:
|
|
| 128 |
|
| 129 |
{"🎉 **All done! Please enter your WORD in the survey and press *Next*.**" if st.session_state.inserted > 1 else ""}
|
| 130 |
""")
|
| 131 |
-
|
| 132 |
-
st.session_state.gotit = st.button("Let's start!", key=None, help=None, use_container_width=True)
|
| 133 |
-
|
| 134 |
@st.dialog('Form', width="large")
|
| 135 |
def form():
|
| 136 |
st.markdown("**Please answer every question to proceed.**")
|
|
@@ -172,10 +170,7 @@ def form():
|
|
| 172 |
setup_messages()
|
| 173 |
st.rerun()
|
| 174 |
|
| 175 |
-
if
|
| 176 |
-
st.markdown("**Please read the instructions in the sidebar to the left before scrolling to the bottom and clicking 'Let's start'.**")
|
| 177 |
-
|
| 178 |
-
if st.session_state.gotit and st.session_state.submitted == False:
|
| 179 |
form()
|
| 180 |
|
| 181 |
for message in st.session_state.messages:
|
|
|
|
| 8 |
st.set_page_config(
|
| 9 |
page_title="Bot",
|
| 10 |
page_icon="🤖",
|
| 11 |
+
initial_sidebar_state="collapsed",
|
| 12 |
layout="wide"
|
| 13 |
)
|
| 14 |
st.markdown(
|
|
|
|
| 128 |
|
| 129 |
{"🎉 **All done! Please enter your WORD in the survey and press *Next*.**" if st.session_state.inserted > 1 else ""}
|
| 130 |
""")
|
| 131 |
+
|
|
|
|
|
|
|
| 132 |
@st.dialog('Form', width="large")
|
| 133 |
def form():
|
| 134 |
st.markdown("**Please answer every question to proceed.**")
|
|
|
|
| 170 |
setup_messages()
|
| 171 |
st.rerun()
|
| 172 |
|
| 173 |
+
if st.session_state.submitted == False:
|
|
|
|
|
|
|
|
|
|
| 174 |
form()
|
| 175 |
|
| 176 |
for message in st.session_state.messages:
|