(1) Clone the project into your local directory.
(2) Create a new virtual Python environment with python version 3.7 in root directory using command :
virtualenv "new_env_name" -p pythonx.x
(3) Activate your new virtual environment.
. "new_env_name"/bin/activate
(4) Install all required dependencies by going to root directory and run the command :
pip install -r requirements.txt
(5) In root directory, to train the Rasa-NLU, run command:
make -C rasachat/ train-nlu
(6) In root directory, to train the Rasa-Core run command:
make -C rasachat/ train-core
(7) To deploy application on local server go to root directory and run command:
sh -x script.sh & sh -x bot.sh & sh -x main.sh
(8) Navigate to: http://127.0.0.1:8000/ (Default hosting address)
NOTE: In case you run the bot again, and it says that the port is already in use, then follow these steps on terminal:
- sudo netstat -tlnp
- Identify the row in column "Local Address" which contains that port number. Note the respective value from "PID/Program name" column.
- sudo kill -9