Sina Media Lab commited on
Commit
3f6a54f
·
1 Parent(s): 5efa76f
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -213,6 +213,8 @@ if submit_button:
213
 
214
  # Show correct/incorrect feedback after submission
215
  if current_question.get('answered', False):
 
 
216
  for option in current_question['options']:
217
  if option == current_question['correct_answer']:
218
  st.markdown(f"<span style='color:green;'>{option} ✅</span>", unsafe_allow_html=True)
 
213
 
214
  # Show correct/incorrect feedback after submission
215
  if current_question.get('answered', False):
216
+ st.session_state.submit_click_count += 1 # Increment click count when showing the solution
217
+
218
  for option in current_question['options']:
219
  if option == current_question['correct_answer']:
220
  st.markdown(f"<span style='color:green;'>{option} ✅</span>", unsafe_allow_html=True)