mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-05 19:41:56 +08:00
增加健壮性
This commit is contained in:
parent
a2f2a5f4a7
commit
3c78539c44
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user