fix when none tts_api

This commit is contained in:
unknown
2024-10-30 14:25:16 +02:00
parent 7dd3eecf2d
commit 02d59131c4

View File

@@ -1216,7 +1216,7 @@ def infer(project, file_checkpoint, exp_name, ref_text, ref_audio, gen_text, nfe
else:
device_test = None
if last_checkpoint != file_checkpoint or last_device != device_test or last_ema != use_ema:
if last_checkpoint != file_checkpoint or last_device != device_test or last_ema != use_ema or tts_api is None:
if last_checkpoint != file_checkpoint:
last_checkpoint = file_checkpoint