Files
Learn-LLM-RAG/run.sh
T
2026-10-10 23:11:55 +08:00

9 lines
275 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
export HF_ENDPOINT="${HF_ENDPOINT:-https://hf-mirror.com}"
if [[ ! -x .venv/bin/python ]]; then
uv sync --python 3.13 --index-url https://pypi.tuna.tsinghua.edu.cn/simple
fi
exec uv run --python 3.13 python -m app