Download scripts/setup_server_env.sh from Dengliming/StreamPIReal6_3w: direct link, hf CLI and curl.
- Browser
- Download file 566 Bytes
-
https://huggingface.co/Dengliming/StreamPIReal6_3w/resolve/main/scripts/setup_server_env.sh
- Command line
-
hf download hf://Dengliming/StreamPIReal6_3w/scripts/setup_server_env.sh
-
curl -L -o setup_server_env.sh https://huggingface.co/Dengliming/StreamPIReal6_3w/resolve/main/scripts/setup_server_env.sh
566 Bytes
| set -Eeuo pipefail | |
| ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" | |
| UV_BIN="${UV_BIN:-uv}" | |
| VENV="${OPENPI_VENV:-$ROOT/.venv}" | |
| if ! command -v "$UV_BIN" >/dev/null 2>&1; then | |
| echo "ERROR: uv was not found." | |
| echo "Install uv first: https://docs.astral.sh/uv/" | |
| exit 1 | |
| fi | |
| cd "$ROOT" | |
| echo "Repository: $ROOT" | |
| echo "Environment: $VENV" | |
| echo "Installing locked server dependencies..." | |
| UV_PROJECT_ENVIRONMENT="$VENV" \ | |
| "$UV_BIN" sync --frozen --no-dev | |
| echo "SERVER_ENV_READY=$VENV" | |
| echo "Run: bash scripts/verify_release.sh" | |