Download start.sh from Fvitu/Offliner: direct link, hf CLI and curl.
- Browser
- Download file 443 Bytes
-
https://huggingface.co/spaces/Fvitu/Offliner/resolve/main/start.sh
- Command line
-
hf download hf://spaces/Fvitu/Offliner/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/Fvitu/Offliner/resolve/main/start.sh
443 Bytes
| set -e | |
| # 1. Start the RQ Worker in the background (&) | |
| echo "Starting Worker..." | |
| python rq_worker.py "${REDIS_URL:-redis://localhost:6379/0}" & | |
| # 2. Start the web server (e.g., using Gunicorn for Flask or FastAPI) | |
| echo "Starting Web Server..." | |
| exec gunicorn app:app \ | |
| --bind 0.0.0.0:${PORT:-7860} \ | |
| --worker-class gthread \ | |
| --workers ${WEB_CONCURRENCY:-1} \ | |
| --threads ${GUNICORN_THREADS:-4} \ | |
| --timeout ${GUNICORN_TIMEOUT:-0} |