Jintonic92 commited on
Commit
7af4be2
·
verified ·
1 Parent(s): fe7a0e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -409,7 +409,14 @@ def main():
409
 
410
  # 추가
411
  display_question(new_question['question'], new_question['choices'])
412
-
 
 
 
 
 
 
 
413
  # 보기 표시
414
  #st.write("**보기:**")
415
  #col1, col2 = st.columns(2)
 
409
 
410
  # 추가
411
  display_question(new_question['question'], new_question['choices'])
412
+ st.session_state[f"similar_question_answered_{i}"] = True
413
+ st.session_state[f"selected_answer_{i}"] = option
414
+ correct_answer = st.session_state.get('current_similar_question_answer')
415
+ if option == correct_answer:
416
+ st.session_state[f"is_correct_{i}"] = True
417
+ else:
418
+ st.session_state[f"is_correct_{i}"] = False
419
+ st.rerun()
420
  # 보기 표시
421
  #st.write("**보기:**")
422
  #col1, col2 = st.columns(2)