mirror of
https://github.com/FunAudioLLM/CosyVoice.git
synced 2026-02-05 01:49:25 +08:00
update
This commit is contained in:
3
webui.py
3
webui.py
@@ -100,6 +100,9 @@ def generate_audio(tts_text, mode_checkbox_group, sft_dropdown, prompt_text, pro
|
|||||||
if mode_checkbox_group in ['预训练音色']:
|
if mode_checkbox_group in ['预训练音色']:
|
||||||
if instruct_text != '' or prompt_wav is not None or prompt_text != '':
|
if instruct_text != '' or prompt_wav is not None or prompt_text != '':
|
||||||
gr.Info('您正在使用预训练音色模式,prompt文本/prompt音频/instruct文本会被忽略!')
|
gr.Info('您正在使用预训练音色模式,prompt文本/prompt音频/instruct文本会被忽略!')
|
||||||
|
if sft_dropdown == '':
|
||||||
|
gr.Warning('没有可用的预训练音色!')
|
||||||
|
yield (cosyvoice.sample_rate, default_data)
|
||||||
# zero_shot mode only use prompt_wav prompt text
|
# zero_shot mode only use prompt_wav prompt text
|
||||||
if mode_checkbox_group in ['3s极速复刻']:
|
if mode_checkbox_group in ['3s极速复刻']:
|
||||||
if prompt_text == '':
|
if prompt_text == '':
|
||||||
|
|||||||
Reference in New Issue
Block a user