spellcheck (#916)

Co-authored-by: starylan <starylan@outlook.com>
This commit is contained in:
SapphireLab
2024-04-03 17:42:23 +08:00
committed by GitHub
parent ed75ecdd6d
commit 72c0eca0a2
2 changed files with 39 additions and 39 deletions

View File

@@ -82,7 +82,7 @@ if bert_path is not None:
tts_config.bert_base_path = bert_path
print(tts_config)
tts_pipline = TTS(tts_config)
tts_pipeline = TTS(tts_config)
gpt_path = tts_config.t2s_weights_path
sovits_path = tts_config.vits_weights_path
@@ -113,7 +113,7 @@ def inference(text, text_lang,
"fragment_interval":fragment_interval,
"seed":actual_seed,
}
for item in tts_pipline.run(inputs):
for item in tts_pipeline.run(inputs):
yield item, actual_seed
def custom_sort_key(s):
@@ -162,8 +162,8 @@ with gr.Blocks(title="GPT-SoVITS WebUI") as app:
SoVITS_dropdown = gr.Dropdown(label=i18n("SoVITS模型列表"), choices=sorted(SoVITS_names, key=custom_sort_key), value=sovits_path, interactive=True)
refresh_button = gr.Button(i18n("刷新模型路径"), variant="primary")
refresh_button.click(fn=change_choices, inputs=[], outputs=[SoVITS_dropdown, GPT_dropdown])
SoVITS_dropdown.change(tts_pipline.init_vits_weights, [SoVITS_dropdown], [])
GPT_dropdown.change(tts_pipline.init_t2s_weights, [GPT_dropdown], [])
SoVITS_dropdown.change(tts_pipeline.init_vits_weights, [SoVITS_dropdown], [])
GPT_dropdown.change(tts_pipeline.init_t2s_weights, [GPT_dropdown], [])
with gr.Row():
with gr.Column():
@@ -227,7 +227,7 @@ with gr.Blocks(title="GPT-SoVITS WebUI") as app:
],
[output, seed],
)
stop_infer.click(tts_pipline.stop, [], [])
stop_infer.click(tts_pipeline.stop, [], [])
with gr.Group():
gr.Markdown(value=i18n("文本切分工具。太长的文本合成出来效果不一定好,所以太长建议先切。合成会根据文本的换行分开合成再拼起来。"))