mirror of
https://github.com/SWivid/F5-TTS.git
synced 2025-12-12 07:40:43 -08:00
fix when none tts_api
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user