Skip to content

Commit

Permalink
Merge pull request #708 from Ikaros-521/owner
Browse files Browse the repository at this point in the history
修复gpt-SoVITS模型路径无法保存的bug
  • Loading branch information
Ikaros-521 committed Mar 19, 2024
2 parents 835c775 + 2838f33 commit 81b4590
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def scroll_to_top():
async def sys_cmd(request: Request):
try:
data_json = await request.json()
logging.info(f'收到数据:{data_json}')
logging.info(f'sys_cmd接口 收到数据:{data_json}')
logging.info(f"开始执行 {data_json['type']}命令...")

resp_json = {}
Expand Down Expand Up @@ -477,6 +477,8 @@ async def sys_cmd(request: Request):
logging.error(traceback.format_exc())
return {"code": -1, "msg": f"{data_json['type']}执行失败!{e}"}



"""
./@\]
,@@@@\* \@@^ ,]]]
Expand Down Expand Up @@ -1517,6 +1519,8 @@ def common_textarea_handle(content):
config_data["gpt_sovits"]["prompt_language"] = select_gpt_sovits_prompt_language.value
config_data["gpt_sovits"]["language"] = select_gpt_sovits_language.value
config_data["gpt_sovits"]["cut"] = select_gpt_sovits_cut.value
config_data["gpt_sovits"]["gpt_model_path"] = input_gpt_sovits_gpt_model_path.value
config_data["gpt_sovits"]["sovits_model_path"] = input_gpt_sovits_sovits_model_path.value
config_data["gpt_sovits"]["webtts"]["spk"] = input_gpt_sovits_webtts_spk.value
config_data["gpt_sovits"]["webtts"]["lang"] = select_gpt_sovits_webtts_lang.value
config_data["gpt_sovits"]["webtts"]["speed"] = input_gpt_sovits_webtts_speed.value
Expand Down

0 comments on commit 81b4590

Please sign in to comment.