This gives 2 deployment options:
- Deploy within Flask app with jinja2 template
This repo currently contains the starter files.
Create a virtual environment
$ mkdir chatbot-deployment $ cd chatbot-deployment $ python3 -m venv venv $ . venv/bin/activate
$ (venv) pip install Flask torch torchvision nltk
Install nltk package
$ (venv) python >>> import nltk >>> nltk.download('punkt')
intents.json with different intents and responses for your Chatbot
$ (venv) python train.py
This will dump data.pth file. And then run the following command to test it in the console.
$ (venv) python chat.py
Now for deployment follow my tutorial to implement