Skip to content

ITHealer/chatbot_rasa_framework

Repository files navigation

Ung Minh Hoài

Chatbot Deployment with Flask and JavaScript

Initial Setup:

This repo currently contains the starter files.

Clone repo and create a virtual environment

$ git clone https://github.com/ITHealer/Chatbot_Rasa.git
$ cd Chatbot_Rasa
$ python -m venv venv
$ . venv/bin/activate

Install dependencies

$ (venv) pip install Flask torch torchvision nltk

Install nltk package

$ (venv) python
>>> import nltk
>>> nltk.download('punkt')

Modify intents.json with different intents and responses for your Chatbot

image

Run

$ (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 app.py and app.js.

Image

[image ]

Credits:

This repo was used for the frontend code: https://github.com/hitchcliff/front-end-chatjs

https://github.com/python-engineer/pytorch-chatbot

https://github.com/python-engineer/chatbot-deployment

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors