Spaces:
Running
on
Zero
Running
on
Zero
Update webui.py
Browse files
webui.py
CHANGED
@@ -183,7 +183,8 @@ def get_cosyvoice():
|
|
183 |
else:
|
184 |
cosyvoice_instance=CosyVoice(model_dir)
|
185 |
return cosyvoice_instance
|
186 |
-
|
|
|
187 |
def load_sft_options():
|
188 |
sound_choices=get_cosyvoice().list_avaliable_spks()
|
189 |
sound_choices_tuples = [(choice, choice) for choice in sound_choices]
|
|
|
183 |
else:
|
184 |
cosyvoice_instance=CosyVoice(model_dir)
|
185 |
return cosyvoice_instance
|
186 |
+
|
187 |
+
@spaces.GPU
|
188 |
def load_sft_options():
|
189 |
sound_choices=get_cosyvoice().list_avaliable_spks()
|
190 |
sound_choices_tuples = [(choice, choice) for choice in sound_choices]
|