Download start.sh from lin7zhi/2api: direct link, hf CLI and curl.
- Browser
- Download file 178 Bytes
-
https://huggingface.co/spaces/lin7zhi/2api/resolve/main/start.sh
- Command line
-
hf download hf://spaces/lin7zhi/2api/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/lin7zhi/2api/resolve/main/start.sh
178 Bytes
| echo "强制同步项目代码,忽略本地修改..." | |
| git fetch --all | |
| git reset --hard origin/$(git rev-parse --abbrev-ref HEAD) | |
| uv sync | |
| source .venv/bin/activate | |
| python web.py |