mirror of
https://github.com/FunAudioLLM/CosyVoice.git
synced 2026-02-05 09:59:23 +08:00
fix lint
This commit is contained in:
4
webui.py
4
webui.py
@@ -42,9 +42,11 @@ def generate_seed():
|
||||
"value": seed
|
||||
}
|
||||
|
||||
|
||||
def change_instruction(mode_checkbox_group):
|
||||
return instruct_dict[mode_checkbox_group]
|
||||
|
||||
|
||||
def generate_audio(tts_text, mode_checkbox_group, sft_dropdown, prompt_text, prompt_wav_upload, prompt_wav_record, instruct_text,
|
||||
seed, stream, speed):
|
||||
if prompt_wav_upload is not None:
|
||||
@@ -168,7 +170,7 @@ if __name__ == '__main__':
|
||||
default='pretrained_models/CosyVoice3-0.5B',
|
||||
help='local path or modelscope repo id')
|
||||
args = parser.parse_args()
|
||||
model = AutoModel(model_dir=args.model_dir)
|
||||
cosyvoice = AutoModel(model_dir=args.model_dir)
|
||||
|
||||
sft_spk = cosyvoice.list_available_spks()
|
||||
if len(sft_spk) == 0:
|
||||
|
||||
Reference in New Issue
Block a user