loading...

re: Build a Chatbot using Flask in 5 minutes VIEW POST

FULL DISCUSSION
 

I am having the below error.

Traceback (most recent call last):
File "app.py", line 9, in
bot.set_trainer(ListTrainer)
AttributeError: 'ChatBot' object has no attribute 'set_trainer'

 

Use
trainer = ChatterBotCorpusTrainer(bot)
trainer.train('chatterbot.corpus.english')

Code of Conduct Report abuse