-
Create a virtual environment:
python -m venv your_virtual_name_env source your_virtual_name_env/bin/activate
-
Install the dependencies:
pip install -r requirements.txt
-
Build the Docker image:
docker build -t ImageName:tag .
The application requires Hugging Face credentials (email and password) for authentication.
-
Set the credentials as environment variables:
export CHATBOT_EMAIL='example@gmail.com' export CHATBOT_PASSWORD='password_hugging_face'
-
Start the application:
python run.py
-
Run the Docker container:
docker run -it --rm --name containerName -p 5000:5000 ImageName:tag