Spaces:
Configuration error
Configuration error
no message
Browse files
deploy.sh
CHANGED
|
@@ -1,30 +1,4 @@
|
|
| 1 |
-
|
| 2 |
-
apt update -y
|
| 3 |
-
|
| 4 |
-
# 安装依赖包
|
| 5 |
-
apt install -y software-properties-common
|
| 6 |
-
|
| 7 |
-
# 添加 deadsnakes PPA 源
|
| 8 |
-
add-apt-repository -y ppa:deadsnakes/ppa
|
| 9 |
-
|
| 10 |
-
# 更新包列表
|
| 11 |
-
apt update -y
|
| 12 |
-
# 安装 Python 3.8
|
| 13 |
-
apt install -y python3.8
|
| 14 |
-
|
| 15 |
-
# 设置 Python 3.8 为默认的 Python 3 版本
|
| 16 |
-
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
|
| 17 |
-
update-alternatives --config python3
|
| 18 |
-
|
| 19 |
-
# 验证 Python 版本
|
| 20 |
-
python3 --version
|
| 21 |
-
python --version
|
| 22 |
-
|
| 23 |
-
# 升级 pip
|
| 24 |
-
python3 -m pip install --upgrade pip
|
| 25 |
-
|
| 26 |
-
# 验证 pip 版本
|
| 27 |
-
pip --version
|
| 28 |
|
| 29 |
# pynini is required by WeTextProcessing, use conda to install it as it can be executed on all platform.
|
| 30 |
pip install pynini==2.1.5
|
|
@@ -37,12 +11,12 @@ apt-get install sox libsox-dev
|
|
| 37 |
mkdir -p pretrained_models
|
| 38 |
huggingface-cli download model-scope/CosyVoice-300M --local-dir pretrained_models/CosyVoice-300M --token=$hf_token
|
| 39 |
huggingface-cli download model-scope/CosyVoice-300M-SFT --local-dir pretrained_models/CosyVoice-300M-SFT --token=$hf_token
|
| 40 |
-
huggingface-cli download FunAudioLLM/CosyVoice-ttsfrd --local-dir pretrained_models/CosyVoice-ttsfrd --token=$hf_token
|
| 41 |
|
| 42 |
ls pretrained_models
|
| 43 |
|
| 44 |
-
cd pretrained_models/CosyVoice-ttsfrd/
|
| 45 |
-
unzip resource.zip -d .
|
| 46 |
-
pip install ttsfrd-0.3.6-cp38-cp38-linux_x86_64.whl
|
| 47 |
|
| 48 |
export PYTHONPATH=third_party/Matcha-TTS
|
|
|
|
| 1 |
+
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
# pynini is required by WeTextProcessing, use conda to install it as it can be executed on all platform.
|
| 4 |
pip install pynini==2.1.5
|
|
|
|
| 11 |
mkdir -p pretrained_models
|
| 12 |
huggingface-cli download model-scope/CosyVoice-300M --local-dir pretrained_models/CosyVoice-300M --token=$hf_token
|
| 13 |
huggingface-cli download model-scope/CosyVoice-300M-SFT --local-dir pretrained_models/CosyVoice-300M-SFT --token=$hf_token
|
| 14 |
+
#huggingface-cli download FunAudioLLM/CosyVoice-ttsfrd --local-dir pretrained_models/CosyVoice-ttsfrd --token=$hf_token
|
| 15 |
|
| 16 |
ls pretrained_models
|
| 17 |
|
| 18 |
+
#cd pretrained_models/CosyVoice-ttsfrd/
|
| 19 |
+
#unzip resource.zip -d .
|
| 20 |
+
#pip install ttsfrd-0.3.6-cp38-cp38-linux_x86_64.whl
|
| 21 |
|
| 22 |
export PYTHONPATH=third_party/Matcha-TTS
|