-
Clone this Repo
git clone https://github.com/karuhun-developer/face-recognition-api.git
-
Cd into the face-recognition-api folder
cd face-recognition-api
-
Create a virtual environment
python -m venv venv
-
Activate virtualenv
source venv/bin/activate
-
Cd into the src folder
cd src
-
Install the required packages
python -m pip install -r requirements.txt
-
Start the app
python main.py
7b. Start the app using Uvicorn
uvicorn app.main:app --reload --workers 1 --host 0.0.0.0 --port 8002
-
App run on port 8002.
-
Clone this Repo
git clone https://github.com/karuhun-developer/face-recognition-api.git
-
Cd into the face-recognition-api folder
cd face-recognition-api
-
Use Docker-Compose to spin up containers
docker-compose up -d --build
-
App run on port 8002.