Spaces:
Running
on
Zero
Running
on
Zero
no message
Browse files
deploy.py
CHANGED
@@ -24,6 +24,9 @@ def run_shell_script(script_path):
|
|
24 |
# 使用方法示例
|
25 |
# 假设有一个名为example.sh的脚本文件在当前目录下
|
26 |
run_shell_script('deploy.sh')
|
|
|
|
|
|
|
27 |
|
28 |
class Args:
|
29 |
def __init__(self):
|
|
|
24 |
# 使用方法示例
|
25 |
# 假设有一个名为example.sh的脚本文件在当前目录下
|
26 |
run_shell_script('deploy.sh')
|
27 |
+
# SDK模型下载
|
28 |
+
from modelscope import snapshot_download
|
29 |
+
snapshot_download('iic/CosyVoice-300M', local_dir='pretrained_models/CosyVoice-300M')
|
30 |
|
31 |
class Args:
|
32 |
def __init__(self):
|
deploy.sh
CHANGED
@@ -11,8 +11,7 @@ pip install -r requirements_.txt
|
|
11 |
|
12 |
# If you encounter sox compatibility issues
|
13 |
# ubuntu
|
14 |
-
apt-get -y update
|
15 |
-
apt-get -y install sox libsox-dev
|
16 |
|
17 |
mkdir -p pretrained_models
|
18 |
#git clone https://www.modelscope.cn/iic/CosyVoice-300M.git pretrained_models/CosyVoice-300M
|
|
|
11 |
|
12 |
# If you encounter sox compatibility issues
|
13 |
# ubuntu
|
14 |
+
apt-get -y update && apt-get -y install sox libsox-dev
|
|
|
15 |
|
16 |
mkdir -p pretrained_models
|
17 |
#git clone https://www.modelscope.cn/iic/CosyVoice-300M.git pretrained_models/CosyVoice-300M
|
webui.py
CHANGED
@@ -223,7 +223,7 @@ with gr.Blocks() as demo:
|
|
223 |
outputs=[audio_output])
|
224 |
mode_checkbox_group.change(fn=change_instruction, inputs=[mode_checkbox_group], outputs=[instruction_text])
|
225 |
demo.queue(max_size=4, default_concurrency_limit=2)
|
226 |
-
demo.launch()
|
227 |
|
228 |
|
229 |
|
|
|
223 |
outputs=[audio_output])
|
224 |
mode_checkbox_group.change(fn=change_instruction, inputs=[mode_checkbox_group], outputs=[instruction_text])
|
225 |
demo.queue(max_size=4, default_concurrency_limit=2)
|
226 |
+
demo.launch(share=True)
|
227 |
|
228 |
|
229 |
|