- Clone the repository in your system.
- Download the model file from https://drive.google.com/file/d/1_zGNR61uII2KZC411l74oNZnSGYg7cHu/view?usp=sharing and unzip it in root directory.
- Install and create a virtual environment by the following step. You'll need python <= 3.7 to set it up.
sudo apt install virtualenv
virtualenv venv --python=python3.7
source venv/bin/activate
- Install the following dependencies
pip install Flask
pip install boto3
pip install requests
pip install regex
pip install flask_cors
pip install numpy
pip install transformers==2.1.1
pip install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
[ Note : above torch command is for python3.7 and no_cuda, you can use this https://pytorch.org/ site to select the torch version according to our python-version and cuda version if you have ]
- Now run the app.py by the following command
python app.py
- You can access the chatbot at http://127.0.0.1:5000/
If you have any other questions or face issues in setting the demo up then kindly reach out to us at letstalk@pragnakalp.com
For all your Natural Language Processing (NLP) requirements, we are here to help you. Email us your requirement at letstalk@pragnakalp.com and don't forget to check out more interesting NLP services we are offering.