Fix inference_cli.py never loading the requested SoVITS weights

Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
This commit is contained in:
Sai Asish Y 2026-08-25 16:22:51 -07:00
parent 48b1a0169a
commit 4509e68e04

View File

@ -28,7 +28,12 @@ def synthesize(
# Change model weights
change_gpt_weights(gpt_path=GPT_model_path)
change_sovits_weights(sovits_path=SoVITS_model_path)
for _ in change_sovits_weights(
sovits_path=SoVITS_model_path,
prompt_language=i18n(ref_language),
text_language=i18n(target_language),
):
pass
# Synthesize audio
synthesis_result = get_tts_wav(