Download scripts/model-dev.sh from gaaaaaaaaaaa/trajectory_rag: direct link, hf CLI and curl.
- Browser
- Download file 468 Bytes
-
https://huggingface.co/gaaaaaaaaaaa/trajectory_rag/resolve/main/scripts/model-dev.sh
- Command line
-
hf download hf://gaaaaaaaaaaa/trajectory_rag/scripts/model-dev.sh
-
curl -L -o model-dev.sh https://huggingface.co/gaaaaaaaaaaa/trajectory_rag/resolve/main/scripts/model-dev.sh
468 Bytes
| set -euo pipefail | |
| ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" | |
| PYTHON_BIN="${MODEL_STREAM_PYTHON:-}" | |
| if [[ -z "$PYTHON_BIN" ]]; then | |
| if [[ -x "$ROOT_DIR/../.venv/bin/python" ]]; then | |
| PYTHON_BIN="$ROOT_DIR/../.venv/bin/python" | |
| else | |
| PYTHON_BIN="python" | |
| fi | |
| fi | |
| HOST="${MODEL_STREAM_HOST:-127.0.0.1}" | |
| PORT="${MODEL_STREAM_PORT:-8011}" | |
| cd "$ROOT_DIR" | |
| exec "$PYTHON_BIN" production/stream.py --host "$HOST" --port "$PORT" | |