deepface/scripts/service.sh
2024-06-02 18:54:12 +01:00

8 lines
246 B
Bash
Executable File

#!/usr/bin/env bash
cd ../deepface/api/src
# run the service with flask - not for production purposes
# python api.py
# run the service with gunicorn - for prod purposes
gunicorn --workers=1 --timeout=3600 --bind=0.0.0.0:5005 "app:create_app()"