Download script/install.sh from beleata74/BgTTS-40M-Engram-Loop-Home-Assistant: direct link, hf CLI and curl.
- Browser
- Download file 424 Bytes
-
https://huggingface.co/beleata74/BgTTS-40M-Engram-Loop-Home-Assistant/resolve/main/script/install.sh
- Command line
-
hf download hf://beleata74/BgTTS-40M-Engram-Loop-Home-Assistant/script/install.sh
-
curl -L -o install.sh https://huggingface.co/beleata74/BgTTS-40M-Engram-Loop-Home-Assistant/resolve/main/script/install.sh
424 Bytes
| set -eu | |
| root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) | |
| if [ "$(id -u)" = 0 ]; then | |
| echo 'Run this script as your regular user, without sudo. It will call sudo for the service.' >&2 | |
| exit 1 | |
| fi | |
| python3 -m venv "$root/.venv" | |
| "$root/.venv/bin/python" -m pip install -r "$root/bgtts/requirements.txt" | |
| sudo python3 "$root/script/install-service.py" --python "$root/.venv/bin/python" --user "$(id -un)" "$@" | |