Download run.bash from d1111111/333: direct link, hf CLI and curl.
- Browser
- Download file 312 Bytes
-
https://huggingface.co/d1111111/333/resolve/refs%2Fpr%2F1/run.bash
- Command line
-
hf download hf://d1111111/333@refs/pr/1/run.bash
-
curl -L -o run.bash https://huggingface.co/d1111111/333/resolve/refs%2Fpr%2F1/run.bash
312 Bytes
| export HF_HOME=huggingface | |
| export PYTHONUTF8=1 | |
| export MPLBACKEND=Agg | |
| # 获取脚本所在目录的绝对路径 | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) | |
| # 激活虚拟环境 | |
| source "$script_dir/venv/bin/activate" | |
| cd "$script_dir" | |
| HF_ENDPOINT=https://hf-mirror.com python launch.py "$@" |