Download run-server.sh from s-b3/LifeStack: direct link, hf CLI and curl.
- Browser
- Download file 327 Bytes
-
https://huggingface.co/spaces/s-b3/LifeStack/resolve/main/run-server.sh
- Command line
-
hf download hf://spaces/s-b3/LifeStack/run-server.sh
-
curl -L -o run-server.sh https://huggingface.co/spaces/s-b3/LifeStack/resolve/main/run-server.sh
327 Bytes
| set -euo pipefail | |
| ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
| VENV_PYTHON="${ROOT_DIR}/.venv/bin/python" | |
| if [[ ! -x "${VENV_PYTHON}" ]]; then | |
| echo "error: ${VENV_PYTHON} not found. Run ./setup.sh first." >&2 | |
| exit 1 | |
| fi | |
| cd "${ROOT_DIR}" | |
| exec "${VENV_PYTHON}" "${ROOT_DIR}/server.py" "$@" | |