Spaces:
bridging
/
Runtime error

YaraKyrychenko commited on
Commit
64e1451
·
verified ·
1 Parent(s): c4c14de

Update app.py

Browse files

delete gotit button, collapsed sidebar

Files changed (1) hide show
  1. app.py +3 -8
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="expanded",
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
- if st.session_state.gotit == False or st.session_state.submitted == False:
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 not st.session_state.gotit:
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: