Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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"] >=
|
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:
|