Skip to content

pritamkhose/Chatbot-Python

Repository files navigation

AI Chatbot Python

Deploying a simple Flask app to the cloud via Heroku

Install dependecies

python --version

pip install -r requirements.txt

or 
pip list

pip install flask
pip uninstall flask
pip show flask

To train model

python train_chatbot.py

Run server

python app.py

You should be able to run this app on your own system via the familiar invocation and visiting http://localhost:5000.

To Deploy on Google colab

Open appColab.ipynb run all script or follow below command. Make sure you have configure "env.local" file "GoogleCoLab=True" and other variable like WEATHERAPI.

python --version
!git clone https://github.com/pritamkhose/Chatbot-Python
cd Chatbot-Python
ls
pip install -r requirements.txt
!python app.py

You will able to run this app by visiting Running URL something like http://.ngrok.io.

To Deploy on Gitpod

python --version
pyenv versions
pyenv install --list
pyenv install 3.8.3
pyenv local 3.8.3
python --version

References