barreloflube commited on
Commit
f7add52
1 Parent(s): c6116e3

Refactor config.py to update CosyVoice TTS imports

Browse files
Files changed (1) hide show
  1. tabs/audios/load_models.py +3 -3
tabs/audios/load_models.py CHANGED
@@ -15,12 +15,12 @@ def init_sys():
15
  df_model, df_state, _ = init_df()
16
 
17
  # Load CosyVoice
18
- cosyvoice= CosyVoice('FunAudioLLM/CosyVoice-300M')
19
 
20
- cosyvoice_sft= CosyVoice('FunAudioLLM/CosyVoice-300M-SFT')
21
  sft_speakers= cosyvoice_sft.list_avaliable_spks()
22
 
23
- cosyvoice_instruct= CosyVoice('FunAudioLLM/CosyVoice-300M-Instruct')
24
 
25
  return device, df_model, df_state, cosyvoice, cosyvoice_sft, sft_speakers, cosyvoice_instruct
26
 
 
15
  df_model, df_state, _ = init_df()
16
 
17
  # Load CosyVoice
18
+ cosyvoice= CosyVoice('iic/CosyVoice-300M')
19
 
20
+ cosyvoice_sft= CosyVoice('iic/CosyVoice-300M-SFT')
21
  sft_speakers= cosyvoice_sft.list_avaliable_spks()
22
 
23
+ cosyvoice_instruct= CosyVoice('iic/CosyVoice-300M-Instruct')
24
 
25
  return device, df_model, df_state, cosyvoice, cosyvoice_sft, sft_speakers, cosyvoice_instruct
26