Skip to content
Branch: master
Find file Copy path
Find file Copy path
3 contributors

Users who have contributed to this file

@binitshah @deparkes @chamkank
23 lines (16 sloc) 590 Bytes
from flask import Flask, render_template, request
from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainer
app = Flask(__name__)
english_bot = ChatBot("Chatterbot", storage_adapter="")
trainer = ChatterBotCorpusTrainer(english_bot)
def home():
return render_template("index.html")
def get_bot_response():
userText = request.args.get('msg')
return str(english_bot.get_response(userText))
if __name__ == "__main__":
You can’t perform that action at this time.