修复在尝试独立运行 inference_webui 时候,找不到部分前置模型(例如bert)的问题

This commit is contained in:
Erythrocyte3803 2024-01-27 13:20:21 +09:00
parent 14097eee3b
commit cf19b6f387

View File

@ -29,10 +29,10 @@ else:
# )
# sovits_path = os.environ.get("sovits_path", "pretrained_models/s2G488k.pth")
cnhubert_base_path = os.environ.get(
"cnhubert_base_path", "pretrained_models/chinese-hubert-base"
"cnhubert_base_path", "GPT_SoVITS/pretrained_models/chinese-hubert-base"
)
bert_path = os.environ.get(
"bert_path", "pretrained_models/chinese-roberta-wwm-ext-large"
"bert_path", "GPT_SoVITS/pretrained_models/chinese-roberta-wwm-ext-large"
)
infer_ttswebui = os.environ.get("infer_ttswebui", 9872)
infer_ttswebui = int(infer_ttswebui)