优化代码

This commit is contained in:
Downupanddownup 2024-04-29 14:49:27 +08:00
parent b8356880dc
commit 1de89feb7b
2 changed files with 2 additions and 2 deletions

View File

@ -818,7 +818,7 @@ def init_ui():
text_api_v2_start_set_sovits_model_request_info])
with gr.Tab(label=i18n("第三方推理服务")):
gr.Markdown(value=i18n("启动第三方推理服务,并完成参考音频打包,模型参数设置等操作"))
gr.Markdown(value=i18n("2.2:配置推理服务参数信息,参考音频路径/文本和角色情绪二选一,如果是角色情绪,需要先执行第四步,"
gr.Markdown(value=i18n("2.2:配置推理服务参数信息,参考音和角色情绪二选一,如果是角色情绪(第三方推理包),需要先执行第五步,"
"将参考音频打包配置到推理服务下,在推理前,请确认完整请求地址是否与正常使用时的一致,包括角色名称,尤其是文本分隔符是否正确"))
text_url = gr.Text(label=i18n("请输入推理服务请求地址与参数"),
value=init.text_url_default)

View File

@ -129,7 +129,7 @@ def init_second():
text_api_v2_sovits_model_param_default = empty_default(rw_param.read(rw_param.api_v2_sovits_model_param), 'weights_path')
text_url_default = empty_default(rw_param.read(rw_param.text_url),
'http://localhost:9880?prompt_language=中文&text_language=中文&cut_punc=')
'http://localhost:9880?prompt_language=中文&text_language=中文&cut_punc=,.;?!、,。?!;:…')
text_text_default = empty_default(rw_param.read(rw_param.text_param), 'text')
dropdown_refer_type_param_default = empty_default(rw_param.read(rw_param.refer_type_param), '参考音频')