增加健壮性

This commit is contained in:
chasonjiang 2024-03-15 14:58:25 +08:00
parent a2f2a5f4a7
commit 3c78539c44

View File

@ -592,7 +592,7 @@ class TTS:
return_fragment = inputs.get("return_fragment", False)
fragment_interval = inputs.get("fragment_interval", 0.3)
seed = inputs.get("seed", -1)
seed = -1 if seed in ["", None] else seed
set_seed(seed)
if return_fragment: