Spaces:
Runtime error
Runtime error
fcyai
commited on
Commit
•
4fbcf7f
1
Parent(s):
5e720ce
duration
Browse files- webui_mix.py +1 -1
webui_mix.py
CHANGED
@@ -504,7 +504,7 @@ with gr.Blocks() as demo:
|
|
504 |
scripts = llm_operation(api_base, api_key, model, LLM_PROMPT, text, required_keys=["txt", "character"])
|
505 |
return script_2_txt(scripts)
|
506 |
|
507 |
-
@spaces.GPU(duration)
|
508 |
def generate_script_audio(text, models_seeds, progress=gr.Progress()):
|
509 |
scripts = txt_2_script(text) # 将文本转换为剧本
|
510 |
characters = get_characters(scripts) # 从剧本中提取角色
|
|
|
504 |
scripts = llm_operation(api_base, api_key, model, LLM_PROMPT, text, required_keys=["txt", "character"])
|
505 |
return script_2_txt(scripts)
|
506 |
|
507 |
+
@spaces.GPU(duration=120)
|
508 |
def generate_script_audio(text, models_seeds, progress=gr.Progress()):
|
509 |
scripts = txt_2_script(text) # 将文本转换为剧本
|
510 |
characters = get_characters(scripts) # 从剧本中提取角色
|