Skip to content

Commit

Permalink
Merge pull request #1058 from Ikaros-521/owner
Browse files Browse the repository at this point in the history
修复:异常报警 和 DDSP配置保存错乱bug
  • Loading branch information
Ikaros-521 authored Nov 14, 2024
2 parents 0ddf6d2 + 06fc3a4 commit a0859e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1959,7 +1959,7 @@ def update_config(config_mapping, config, config_data, type="common_config"):
"gift_enable": (switch_database_gift_enable, 'bool'),
}
if config.get("webui", "show_card", "common_config", "abnormal_alarm"):
config_mapping["database"] = {
config_mapping["abnormal_alarm"] = {
"platform": {
"enable": (switch_abnormal_alarm_platform_enable, 'bool'),
"type": (select_abnormal_alarm_platform_type, 'str'),
Expand Down Expand Up @@ -2874,7 +2874,7 @@ def update_config(config_mapping, config, config_data, type="common_config"):
"sampleRate": (input_ddsp_svc_sampleRate, 'int'),
}
if config.get("webui", "show_card", "svc", "so_vits_svc"):
config_mapping["ddsp_svc"] = {
config_mapping["so_vits_svc"] = {
"enable": (switch_so_vits_svc_enable, 'bool'),
"config_path": (input_so_vits_svc_config_path, 'str'),
"api_ip_port": (input_so_vits_svc_api_ip_port, 'str'),
Expand Down

0 comments on commit a0859e5

Please sign in to comment.