You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i had created the chat history in one the file named as chat.yml file but i am facing a problem could any one resolve it Bellow is my code
userText = request.args.get('msg')
# print(userText)
text = str(english_bot.get_response(userText))
Chathistory = "chathistory"
a = {"categories":[Chathistory],"converstaions":[[userText,text]]}
with open("chat.yml","a") as outfile:
yaml.dump(a,outfile,default_flow_style=False)
return text
Hi,
i had created the chat history in one the file named as chat.yml file but i am facing a problem could any one resolve it
Bellow is my code
userText = request.args.get('msg')
# print(userText)
text = str(english_bot.get_response(userText))
Chat.yml
categories:
converstaions:
categories:
converstaions:
categories:
converstaions:
Actual yml file
categories:
conversations:
could any one help me to resolve this issue
Thanks in advance
Happy codding....
The text was updated successfully, but these errors were encountered: