Skip to content

Commit 6b21f8e

Browse files
authored
Merge pull request #813 from FunAudioLLM/dev/lyuxiang.lx
update
2 parents 737d101 + 2745d47 commit 6b21f8e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

webui.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ def generate_audio(tts_text, mode_checkbox_group, sft_dropdown, prompt_text, pro
100100
if mode_checkbox_group in ['预训练音色']:
101101
if instruct_text != '' or prompt_wav is not None or prompt_text != '':
102102
gr.Info('您正在使用预训练音色模式,prompt文本/prompt音频/instruct文本会被忽略!')
103+
if sft_dropdown == '':
104+
gr.Warning('没有可用的预训练音色!')
105+
yield (cosyvoice.sample_rate, default_data)
103106
# zero_shot mode only use prompt_wav prompt text
104107
if mode_checkbox_group in ['3s极速复刻']:
105108
if prompt_text == '':

0 commit comments

Comments
 (0)