deepface/scripts/service.sh
2024-02-04 17:27:17 +00: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:5000 "app:create_app()"