Spaces:
Running
on
Zero
Running
on
Zero
no message
Browse files
webui.py
CHANGED
@@ -132,7 +132,7 @@ def generate_audio(tts_text, mode_checkbox_group, sft_dropdown, prompt_text, pro
|
|
132 |
yield (target_sr, i['tts_speech'].numpy().flatten())
|
133 |
|
134 |
|
135 |
-
def main():
|
136 |
with gr.Blocks() as demo:
|
137 |
gr.Markdown("### 代码库 [CosyVoice](https://github.com/FunAudioLLM/CosyVoice) \
|
138 |
预训练模型 [CosyVoice-300M](https://www.modelscope.cn/models/iic/CosyVoice-300M) \
|
@@ -185,4 +185,4 @@ if __name__ == '__main__':
|
|
185 |
sft_spk = cosyvoice.list_avaliable_spks()
|
186 |
prompt_sr, target_sr = 16000, 22050
|
187 |
default_data = np.zeros(target_sr)
|
188 |
-
main()
|
|
|
132 |
yield (target_sr, i['tts_speech'].numpy().flatten())
|
133 |
|
134 |
|
135 |
+
def main(args):
|
136 |
with gr.Blocks() as demo:
|
137 |
gr.Markdown("### 代码库 [CosyVoice](https://github.com/FunAudioLLM/CosyVoice) \
|
138 |
预训练模型 [CosyVoice-300M](https://www.modelscope.cn/models/iic/CosyVoice-300M) \
|
|
|
185 |
sft_spk = cosyvoice.list_avaliable_spks()
|
186 |
prompt_sr, target_sr = 16000, 22050
|
187 |
default_data = np.zeros(target_sr)
|
188 |
+
main(args)
|