Download entrypoint.sh from ServiceX/PDF: direct link, hf CLI and curl.
- Browser
- Download file 385 Bytes
-
https://huggingface.co/spaces/ServiceX/PDF/resolve/main/entrypoint.sh
- Command line
-
hf download hf://spaces/ServiceX/PDF/entrypoint.sh
-
curl -L -o entrypoint.sh https://huggingface.co/spaces/ServiceX/PDF/resolve/main/entrypoint.sh
385 Bytes
| set -euo pipefail | |
| RAW_USERS="${BASIC_AUTH_USERS:-}" | |
| if [[ -z "${RAW_USERS}" ]]; then | |
| echo "[ERROR] BASIC_AUTH_USERS is required. Use one 'username:password' per line." >&2 | |
| exit 1 | |
| fi | |
| echo "[INFO] Starting gateway on :7860" | |
| cd / && exec /opt/gateway/bin/uvicorn gateway:app \ | |
| --app-dir /src \ | |
| --host 0.0.0.0 --port 7860 --workers 1 --log-level info | |