Spaces:
Configuration error
Configuration error
unknown
commited on
Commit
·
02d5913
1
Parent(s):
7dd3eec
fix when none tts_api
Browse files
src/f5_tts/train/finetune_gradio.py
CHANGED
@@ -1216,7 +1216,7 @@ def infer(project, file_checkpoint, exp_name, ref_text, ref_audio, gen_text, nfe
|
|
1216 |
else:
|
1217 |
device_test = None
|
1218 |
|
1219 |
-
if last_checkpoint != file_checkpoint or last_device != device_test or last_ema != use_ema:
|
1220 |
if last_checkpoint != file_checkpoint:
|
1221 |
last_checkpoint = file_checkpoint
|
1222 |
|
|
|
1216 |
else:
|
1217 |
device_test = None
|
1218 |
|
1219 |
+
if last_checkpoint != file_checkpoint or last_device != device_test or last_ema != use_ema or tts_api is None:
|
1220 |
if last_checkpoint != file_checkpoint:
|
1221 |
last_checkpoint = file_checkpoint
|
1222 |
|