This commit is contained in:
XXXXRT666 2024-08-06 02:18:41 +08:00
parent c431ced520
commit a3f67ffcf8
2 changed files with 6 additions and 2 deletions

View File

@ -168,5 +168,9 @@
"预训练的SSL模型路径": "预训练的SSL模型路径", "预训练的SSL模型路径": "预训练的SSL模型路径",
"预训练的SoVITS-D模型路径": "预训练的SoVITS-D模型路径", "预训练的SoVITS-D模型路径": "预训练的SoVITS-D模型路径",
"预训练的SoVITS-G模型路径": "预训练的SoVITS-G模型路径", "预训练的SoVITS-G模型路径": "预训练的SoVITS-G模型路径",
"预训练的中文BERT模型路径": "预训练的中文BERT模型路径" "预训练的中文BERT模型路径": "预训练的中文BERT模型路径",
"以下模型不存在:":"以下模型不存在:",
"未下载V1模型":"未下载V1模型",
"未下载V2模型":"未下载V2模型"
} }

View File

@ -731,7 +731,7 @@ def switch_version(version_):
if len(pretrained_gpt_name) > 1 and len(pretrained_sovits_name) > 1: if len(pretrained_gpt_name) > 1 and len(pretrained_sovits_name) > 1:
return {'__type__':'update', 'value':pretrained_sovits_name[-int(version[-1])+2]}, {'__type__':'update', 'value':pretrained_sovits_name[-int(version[-1])+2].replace("s2G","s2D")}, {'__type__':'update', 'value':pretrained_gpt_name[-int(version[-1])+2]}, {'__type__':'update', 'value':pretrained_gpt_name[-int(version[-1])+2]}, {'__type__':'update', 'value':pretrained_sovits_name[-int(version[-1])+2]} return {'__type__':'update', 'value':pretrained_sovits_name[-int(version[-1])+2]}, {'__type__':'update', 'value':pretrained_sovits_name[-int(version[-1])+2].replace("s2G","s2D")}, {'__type__':'update', 'value':pretrained_gpt_name[-int(version[-1])+2]}, {'__type__':'update', 'value':pretrained_gpt_name[-int(version[-1])+2]}, {'__type__':'update', 'value':pretrained_sovits_name[-int(version[-1])+2]}
else: else:
raise gr.Error(i18n('未下载V1模型')) raise gr.Error(i18n(f'未下载{version.upper()}模型'))
from text.g2pw import G2PWPinyin from text.g2pw import G2PWPinyin