Sina Media Lab
commited on
Commit
·
064fe00
1
Parent(s):
3b206b5
Updates
Browse files
app.py
CHANGED
@@ -187,7 +187,7 @@ if submit_button:
|
|
187 |
st.session_state.correct_count += 1
|
188 |
st.session_state.module_correct_count[selected_module] += 1
|
189 |
|
190 |
-
#
|
191 |
st.session_state.submit_enabled = False
|
192 |
st.session_state.new_enabled = True
|
193 |
|
@@ -205,6 +205,9 @@ if submit_button:
|
|
205 |
for step in current_question['step_by_step_solution']:
|
206 |
st.write(step)
|
207 |
|
|
|
|
|
|
|
208 |
else:
|
209 |
st.warning("Please select an option before submitting.", icon="⚠️")
|
210 |
|
|
|
187 |
st.session_state.correct_count += 1
|
188 |
st.session_state.module_correct_count[selected_module] += 1
|
189 |
|
190 |
+
# Immediately disable Submit and enable New
|
191 |
st.session_state.submit_enabled = False
|
192 |
st.session_state.new_enabled = True
|
193 |
|
|
|
205 |
for step in current_question['step_by_step_solution']:
|
206 |
st.write(step)
|
207 |
|
208 |
+
# Force update of the interface
|
209 |
+
st.experimental_rerun()
|
210 |
+
|
211 |
else:
|
212 |
st.warning("Please select an option before submitting.", icon="⚠️")
|
213 |
|