YoniFriedman commited on
Commit
019d7e8
·
verified ·
1 Parent(s): 1541811

adding correct user reply to chat history

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -90,7 +90,7 @@ def nishauri(question: str, conversation_history: list[str]):
90
  if lang_question=="sw":
91
  reply_to_user = GoogleTranslator(source='auto', target='sw').translate(reply_to_user)
92
 
93
- conversation_history.append({"user": question, "chatbot": response.response})
94
 
95
  return reply_to_user, conversation_history
96
 
 
90
  if lang_question=="sw":
91
  reply_to_user = GoogleTranslator(source='auto', target='sw').translate(reply_to_user)
92
 
93
+ conversation_history.append({"user": question, "chatbot": reply_to_user})
94
 
95
  return reply_to_user, conversation_history
96