Maryam Ilka commited on
Commit
32253c6
·
verified ·
1 Parent(s): 030e154

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -16
app.py CHANGED
@@ -610,22 +610,13 @@ def attention_check1():
610
  key="att1_radio"
611
  )
612
 
613
- # سپس دکمه را ایجاد کنید
614
- col1, col2 = st.columns([1, 2])
615
- with col2:
616
- btn = st.button("ادامه", key="continue_green")
617
- if btn:
618
- st.markdown("""
619
- <script>
620
- document.querySelector('[data-testid="stButton"] button').classList.add('green-btn');
621
- </script>
622
- """, unsafe_allow_html=True)
623
- if answer:
624
- st.session_state.attention_check1 = answer # ذخیره پاسخ در session_state
625
- st.session_state.current_page = "random_likert_questions"
626
- st.rerun()
627
- else:
628
- st.warning("لطفاً یک گزینه را انتخاب کنید")
629
 
630
  def attention_check2():
631
  """سوال توجه دوم (بدون بررسی پاسخ صحیح)"""
 
610
  key="att1_radio"
611
  )
612
 
613
+ if st.button("ادامه", key="continue_green")
614
+ if answer:
615
+ st.session_state.attention_check1 = answer # ذخیره پاسخ در session_state
616
+ st.session_state.current_page = "random_likert_questions"
617
+ st.rerun()
618
+ else:
619
+ st.warning("لطفاً یک گزینه را انتخاب کنید")
 
 
 
 
 
 
 
 
 
620
 
621
  def attention_check2():
622
  """سوال توجه دوم (بدون بررسی پاسخ صحیح)"""