Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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()) <
|
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:")
|