Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ instruct_dict = {'预训练音色': '1. 选择预训练音色\n2.点击生成音
|
|
68 |
def change_instruction(mode_checkbox_group):
|
69 |
return instruct_dict[mode_checkbox_group]
|
70 |
|
71 |
-
@spaces.GPU
|
72 |
def generate_audio(tts_text, mode_checkbox_group, sft_dropdown, prompt_text, prompt_wav_upload, instruct_text, seed):
|
73 |
prompt_wav_record = None
|
74 |
tts_text = "".join([item1 for item1 in tts_text.strip().split("\n") if item1 != ""]) + ".。"
|
|
|
68 |
def change_instruction(mode_checkbox_group):
|
69 |
return instruct_dict[mode_checkbox_group]
|
70 |
|
71 |
+
@spaces.GPU(duration=70)
|
72 |
def generate_audio(tts_text, mode_checkbox_group, sft_dropdown, prompt_text, prompt_wav_upload, instruct_text, seed):
|
73 |
prompt_wav_record = None
|
74 |
tts_text = "".join([item1 for item1 in tts_text.strip().split("\n") if item1 != ""]) + ".。"
|