Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,9 +2,9 @@
|
|
| 2 |
import os
|
| 3 |
|
| 4 |
gpt_path = os.environ.get(
|
| 5 |
-
"gpt_path", "pretrained_models/
|
| 6 |
)
|
| 7 |
-
sovits_path = os.environ.get("sovits_path", "pretrained_models/
|
| 8 |
cnhubert_base_path = os.environ.get(
|
| 9 |
"cnhubert_base_path", "pretrained_models/chinese-hubert-base"
|
| 10 |
)
|
|
@@ -257,8 +257,8 @@ with gr.Blocks(title="GPT-SoVITS Zero-shot TTS Demo") as app:
|
|
| 257 |
|
| 258 |
gr.Markdown("## 请上传参考音频")
|
| 259 |
with gr.Row():
|
| 260 |
-
inp_ref = gr.Audio(label="请上传数据集中的参考音频", type="filepath", value="
|
| 261 |
-
prompt_text = gr.Textbox(label="参考音频对应的文字内容", value="
|
| 262 |
prompt_language = gr.Dropdown(
|
| 263 |
label="参考音频的语言",
|
| 264 |
choices=["Chinese", "English", "Japanese"],
|
|
|
|
| 2 |
import os
|
| 3 |
|
| 4 |
gpt_path = os.environ.get(
|
| 5 |
+
"gpt_path", "pretrained_models/jay-e15.ckpt"
|
| 6 |
)
|
| 7 |
+
sovits_path = os.environ.get("sovits_path", "pretrained_models/jay_e10_s60.pth")
|
| 8 |
cnhubert_base_path = os.environ.get(
|
| 9 |
"cnhubert_base_path", "pretrained_models/chinese-hubert-base"
|
| 10 |
)
|
|
|
|
| 257 |
|
| 258 |
gr.Markdown("## 请上传参考音频")
|
| 259 |
with gr.Row():
|
| 260 |
+
inp_ref = gr.Audio(label="请上传数据集中的参考音频", type="filepath", value="jay_speech.wav_1361600_1516800.wav")
|
| 261 |
+
prompt_text = gr.Textbox(label="参考音频对应的文字内容", value="你喜欢这样的东西,所以你我觉得人要有一技之长呢。")
|
| 262 |
prompt_language = gr.Dropdown(
|
| 263 |
label="参考音频的语言",
|
| 264 |
choices=["Chinese", "English", "Japanese"],
|