LilRg commited on
Commit
f7f7f95
·
verified ·
1 Parent(s): cae3bf8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -319,7 +319,7 @@ def manage_conversation_flow(question, response, history):
319
  if isinstance(analysis, dict) and "error" not in analysis:
320
  current_question_index = len(history) // 2
321
 
322
- if analysis["pertinence"] >= 70 or analysis["detail"] >= 70:
323
  if current_question_index < len(competence_questions) - 1:
324
  return competence_questions[current_question_index + 1], None
325
  else:
 
319
  if isinstance(analysis, dict) and "error" not in analysis:
320
  current_question_index = len(history) // 2
321
 
322
+ if analysis["pertinence"] >= 40 or analysis["detail"] >= 40:
323
  if current_question_index < len(competence_questions) - 1:
324
  return competence_questions[current_question_index + 1], None
325
  else: