Download scripts/setup_cosy.sh from hkblockchaintechnology/lyra-studio: direct link, hf CLI and curl.
- Browser
- Download file 509 Bytes
-
https://huggingface.co/hkblockchaintechnology/lyra-studio/resolve/main/scripts/setup_cosy.sh
- Command line
-
hf download hf://hkblockchaintechnology/lyra-studio/scripts/setup_cosy.sh
-
curl -L -o setup_cosy.sh https://huggingface.co/hkblockchaintechnology/lyra-studio/resolve/main/scripts/setup_cosy.sh
509 Bytes
| set -x | |
| B=/marimo/ai_studio | |
| cd $B/vendor/CosyVoice || exit 1 | |
| git submodule update --init --recursive --depth 1 third_party/Matcha-TTS 2>&1 | tail -3 | |
| python3 -m venv --system-site-packages $B/envs/cosy 2>/dev/null || uv venv $B/envs/cosy | |
| CP=$B/envs/cosy/bin/python | |
| $CP -m ensurepip -q 2>/dev/null | |
| uv pip install -p $CP "setuptools<81" wheel | |
| uv pip install -p $CP -r requirements.txt | |
| uv pip install -p $CP -e . --no-deps | |
| uv pip install -p $CP -e third_party/Matcha-TTS --no-deps | |
| echo COSY_SETUP_DONE | |