Sina Media Lab
commited on
Commit
·
ed05a56
1
Parent(s):
bcfde53
Updates
Browse files
app.py
CHANGED
@@ -165,6 +165,9 @@ with col3:
|
|
165 |
|
166 |
st.write(current_question["question"])
|
167 |
|
|
|
|
|
|
|
168 |
# Create the form for the question
|
169 |
with st.form(key=f'question_form_{st.session_state.current_index}'):
|
170 |
selected_answer = st.radio(
|
@@ -174,7 +177,7 @@ with st.form(key=f'question_form_{st.session_state.current_index}'):
|
|
174 |
key=f"question_{st.session_state.current_index}_options"
|
175 |
)
|
176 |
|
177 |
-
submit_button = st.form_submit_button(label=
|
178 |
|
179 |
# Handle button state and answer submission
|
180 |
if submit_button:
|
|
|
165 |
|
166 |
st.write(current_question["question"])
|
167 |
|
168 |
+
# Determine the button label based on click count
|
169 |
+
button_label = "Submit/Next" if st.session_state.submit_click_count == 0 else "Next"
|
170 |
+
|
171 |
# Create the form for the question
|
172 |
with st.form(key=f'question_form_{st.session_state.current_index}'):
|
173 |
selected_answer = st.radio(
|
|
|
177 |
key=f"question_{st.session_state.current_index}_options"
|
178 |
)
|
179 |
|
180 |
+
submit_button = st.form_submit_button(label=button_label)
|
181 |
|
182 |
# Handle button state and answer submission
|
183 |
if submit_button:
|