-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chatterbot not answer... #33
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi... the chatterbot not answer...
I uses this...
Chatterbot 1.0.8
Flask 1.1.2
The app
`from flask import Flask, render_template, request
from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainer
app = Flask(name, template_folder="templates")
chatbot = ChatBot('Toni')
Create a new trainer for the chatbot
trainer = ChatterBotCorpusTrainer(chatbot)
Train the chatbot based on the english corpus
trainer.train("chatterbot.corpus.english")
Train the chatbot based on the spanish corpus
trainer.train("chatterbot.corpus.spanish")
@app.route('/')
def home():
return render_template('home.html')
@app.route("/get")
def get_bot_response():
userText = request.args.get('msg')
return str(bot.get_response(userText))
if name == "main":
from waitress import serve
serve(app, host="0.0.0.0", port=8080)
(I don't know if waitress is ok... I am músican no programer)
The html is there
``
``
<title>ChatBot</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>Welcome to my ChatBot
Hello! My name is Bob. Your personal chatbot!
Hi! Nice to meet you!
Thanks for help me.
The text was updated successfully, but these errors were encountered: