Download run-app.sh from s-b3/LifeStack: direct link, hf CLI and curl.
- Browser
- Download file 324 Bytes
-
https://huggingface.co/spaces/s-b3/LifeStack/resolve/main/run-app.sh
- Command line
-
hf download hf://spaces/s-b3/LifeStack/run-app.sh
-
curl -L -o run-app.sh https://huggingface.co/spaces/s-b3/LifeStack/resolve/main/run-app.sh
324 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}/app.py" "$@" | |