Update app.py
Browse files
app.py
CHANGED
|
@@ -77,7 +77,7 @@ async def respond(user_input, history, step, language, questions, followup_mode)
|
|
| 77 |
history.append({"role": "assistant", "content": f"{welcome}\n\n1. {translated_questions[0]}"})
|
| 78 |
return history, "", 1, user_language, translated_questions, False
|
| 79 |
if step >= len(questions):
|
| 80 |
-
thank_you = await gpt_translate("Thank you for your response!", language)
|
| 81 |
end_note = await gpt_translate("This concludes our questions. Please proceed with the rest of the survey. 📝", language)
|
| 82 |
history.append({"role": "assistant", "content": thank_you})
|
| 83 |
history.append({"role": "assistant", "content": end_note})
|
|
|
|
| 77 |
history.append({"role": "assistant", "content": f"{welcome}\n\n1. {translated_questions[0]}"})
|
| 78 |
return history, "", 1, user_language, translated_questions, False
|
| 79 |
if step >= len(questions):
|
| 80 |
+
thank_you = await gpt_translate("Thank you for your response! It was a pleasure talking with you. I hope you enjoyed the conversation.", language)
|
| 81 |
end_note = await gpt_translate("This concludes our questions. Please proceed with the rest of the survey. 📝", language)
|
| 82 |
history.append({"role": "assistant", "content": thank_you})
|
| 83 |
history.append({"role": "assistant", "content": end_note})
|