HelenaXH commited on
Commit
2eb0f8f
·
verified ·
1 Parent(s): 7782d9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -434,11 +434,14 @@ def predict(message, history):
434
  else:
435
  user_profile[key] = message.strip()
436
 
437
- if current_q_index < len(questions):
438
  nxt = questions[current_q_index][1]
439
  current_q_index += 1
440
  return nxt
441
 
 
 
 
442
  # ======================== 分模式处理 =========================
443
  mode = user_profile.get("mode") or ""
444
 
 
434
  else:
435
  user_profile[key] = message.strip()
436
 
437
+ if current_q_index < len(questions)and not in_forward_flow and not in_backward_flow:
438
  nxt = questions[current_q_index][1]
439
  current_q_index += 1
440
  return nxt
441
 
442
+
443
+
444
+
445
  # ======================== 分模式处理 =========================
446
  mode = user_profile.get("mode") or ""
447