Yara Kyrychenko
commited on
Commit
·
44eb616
1
Parent(s):
5bdc324
fix recycling type
Browse files
app.py
CHANGED
@@ -68,9 +68,9 @@ if 'inserted' not in st.session_state:
|
|
68 |
st.session_state.start_time = datetime.now()
|
69 |
st.session_state.convo_start_time = ''
|
70 |
|
71 |
-
if 'p' not in st.query_params:
|
72 |
st.query_params['p'] = st.radio("Select a condition for the conversation",
|
73 |
-
['1', '2', '3', '4'],
|
74 |
help="1 = base, 2 = bridging, 3 = personalization, 4 = bridging + personalization")
|
75 |
|
76 |
if 'id' not in st.query_params:
|
@@ -152,7 +152,7 @@ def form():
|
|
152 |
with columns_form[2]:
|
153 |
submitted = st.button("Proceed",use_container_width=True,
|
154 |
help = 'Make sure you answer every question',
|
155 |
-
disabled = not (all(st.session_state[field] != '' for field in st.session_state.fields)
|
156 |
|
157 |
if submitted:
|
158 |
|
|
|
68 |
st.session_state.start_time = datetime.now()
|
69 |
st.session_state.convo_start_time = ''
|
70 |
|
71 |
+
if 'p' not in st.query_params or st.query_params['p'] == '':
|
72 |
st.query_params['p'] = st.radio("Select a condition for the conversation",
|
73 |
+
['', '1', '2', '3', '4'],
|
74 |
help="1 = base, 2 = bridging, 3 = personalization, 4 = bridging + personalization")
|
75 |
|
76 |
if 'id' not in st.query_params:
|
|
|
152 |
with columns_form[2]:
|
153 |
submitted = st.button("Proceed",use_container_width=True,
|
154 |
help = 'Make sure you answer every question',
|
155 |
+
disabled = not (all(st.session_state[field] != '' for field in st.session_state.fields)))
|
156 |
|
157 |
if submitted:
|
158 |
|