Spaces:
Sleeping
Sleeping
Download scripts/run_notification_worker.sh from cksleigen/sangsangfinder: direct link, hf CLI and curl.
- Browser
- Download file 410 Bytes
-
https://huggingface.co/spaces/cksleigen/sangsangfinder/resolve/main/scripts/run_notification_worker.sh
- Command line
-
hf download hf://spaces/cksleigen/sangsangfinder/scripts/run_notification_worker.sh
-
curl -L -o run_notification_worker.sh https://huggingface.co/spaces/cksleigen/sangsangfinder/resolve/main/scripts/run_notification_worker.sh
410 Bytes
| # Keep the notification worker awake with caffeinate while this process runs. | |
| set -euo pipefail | |
| ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)" | |
| PYTHON_BIN="${PYTHON_BIN:-$ROOT_DIR/.venv311/bin/python}" | |
| if [ ! -x "$PYTHON_BIN" ]; then | |
| PYTHON_BIN="$(command -v python3)" | |
| fi | |
| cd "$ROOT_DIR" | |
| exec /usr/bin/caffeinate -dimsu "$PYTHON_BIN" scripts/notice_notification_worker.py --daemon "$@" | |