Skip to content
Snippets Groups Projects
Commit ed18916f authored by pracht's avatar pracht
Browse files

Make break condition indepentent of content

parent e12d528b
No related branches found
No related tags found
No related merge requests found
......@@ -335,7 +335,7 @@ def run_dialogue(user_intents, data):
dialog = reconstruct_dialog(turns)
# Stop condition
if "Thank you!" in turns[-1] or len(turns) > 30:
if "Thank you!" in turns[-1] or turn_count > 30:
return ({
"user_intent": user_intents,
"utterances_separated": prefix_turns(turns),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment