Ozaii commited on
Commit
21c7321
·
verified ·
1 Parent(s): 9860767

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -91,7 +91,7 @@ def generate_response(user_input, chat_history):
91
 
92
  followup_messages.append(additional_assistant_response)
93
 
94
- if len(additional_assistant_response.split()) < 7:
95
  second_followup_prompt = (f"This is a third follow-up message to the previous assistant response. "
96
  f"Continue the conversation smoothly and ensure it flows naturally based on the context.\n"
97
  f"{followup_prompt} {additional_assistant_response}\nAssistant:")
 
91
 
92
  followup_messages.append(additional_assistant_response)
93
 
94
+ if len(additional_assistant_response.split()) < 6:
95
  second_followup_prompt = (f"This is a third follow-up message to the previous assistant response. "
96
  f"Continue the conversation smoothly and ensure it flows naturally based on the context.\n"
97
  f"{followup_prompt} {additional_assistant_response}\nAssistant:")