GSMEthesis commited on
Commit
67eb5ff
·
verified ·
1 Parent(s): f4adfa3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -1272,11 +1272,13 @@ def explanation_questions():
1272
  else:
1273
  logical_key = current_q["logical_key"]
1274
  st.session_state[logical_key] = response
1275
- st.session_state.explanation_step += 1
1276
 
1277
- # بررسی اینکه سوال بعدی هست یا نه
1278
- if st.session_state.explanation_step >= len(questions):
1279
  st.session_state.current_page = "demographic"
 
 
 
1280
  st.rerun()
1281
 
1282
 
 
1272
  else:
1273
  logical_key = current_q["logical_key"]
1274
  st.session_state[logical_key] = response
 
1275
 
1276
+ # اگر سوال آخره، نریم مرحله بعد. فقط صفحه بعد رو مشخص کن
1277
+ if step == len(questions) - 1:
1278
  st.session_state.current_page = "demographic"
1279
+ else:
1280
+ st.session_state.explanation_step += 1
1281
+
1282
  st.rerun()
1283
 
1284