Spaces:
Configuration error
Configuration error
no message
Browse files
deploy.sh
CHANGED
|
@@ -1,12 +1,13 @@
|
|
| 1 |
# 安装 Python 3.8
|
| 2 |
-
|
| 3 |
|
| 4 |
# 设置 Python 3.8 为默认的 Python 3 版本
|
| 5 |
-
|
| 6 |
-
|
| 7 |
|
| 8 |
# 验证 Python 版本
|
| 9 |
python3 --version
|
|
|
|
| 10 |
|
| 11 |
# 升级 pip
|
| 12 |
python3 -m pip install --upgrade pip
|
|
@@ -20,7 +21,7 @@ pip install -r requirements.txt
|
|
| 20 |
|
| 21 |
# If you encounter sox compatibility issues
|
| 22 |
# ubuntu
|
| 23 |
-
|
| 24 |
|
| 25 |
mkdir -p pretrained_models
|
| 26 |
huggingface-cli download model-scope/CosyVoice-300M --local-dir pretrained_models/CosyVoice-300M --token=$hf_token
|
|
|
|
| 1 |
# 安装 Python 3.8
|
| 2 |
+
apt install -y python3.8
|
| 3 |
|
| 4 |
# 设置 Python 3.8 为默认的 Python 3 版本
|
| 5 |
+
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
|
| 6 |
+
update-alternatives --config python3
|
| 7 |
|
| 8 |
# 验证 Python 版本
|
| 9 |
python3 --version
|
| 10 |
+
python --version
|
| 11 |
|
| 12 |
# 升级 pip
|
| 13 |
python3 -m pip install --upgrade pip
|
|
|
|
| 21 |
|
| 22 |
# If you encounter sox compatibility issues
|
| 23 |
# ubuntu
|
| 24 |
+
apt-get install sox libsox-dev
|
| 25 |
|
| 26 |
mkdir -p pretrained_models
|
| 27 |
huggingface-cli download model-scope/CosyVoice-300M --local-dir pretrained_models/CosyVoice-300M --token=$hf_token
|