So this was my code:
from chatterbot.trainers import ListTrainer
from chatterbot import chatbot
bot = chatbot('Dona')
conv = open('sample.txt', 'r').readlines()
bot.set_trainer(ListTrainer)
bot.train(conv)
while True:
query = input("You: ")
reply = bot.get_response(query)
print("Bot: ", response)
And there's this error I get, I think it's unable to import the program
enter code here
from pytz import UTC
ModuleNotFoundError: No module named 'pytz'
This is the last line of error.
Install pytz to your python environment:
pip install pytz
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With