faceta-algo-server/scripts/service.sh

8 lines
248 B
Bash
Raw Normal View History

2024-10-11 15:15:15 +00:00
#!/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=127.0.0.1:5005 "app:create_app()"