oops
This commit is contained in:
parent
9fb4aa7917
commit
e1f3ffa08c
|
@ -1316,6 +1316,8 @@ def setup_args():
|
|||
|
||||
if args.listen_port is not None:
|
||||
args.listen_port = int(args.listen_port)
|
||||
if args.listen_port == 0:
|
||||
args.listen_port = None
|
||||
|
||||
return args
|
||||
|
||||
|
@ -1476,10 +1478,10 @@ def load_tts( restart=False, model=None ):
|
|||
|
||||
tts_loading = True
|
||||
try:
|
||||
tts = TextToSpeech(minor_optimizations=not args.low_vram, autoregressive_model_path=args.autoregressive_model, use_bigvgan=args.use_bigvgan_vocoder)
|
||||
tts = TextToSpeech(minor_optimizations=not args.low_vram, autoregressive_model_path=args.autoregressive_model)
|
||||
except Exception as e:
|
||||
tts = TextToSpeech(minor_optimizations=not args.low_vram)
|
||||
load_autoregressive_model(args.autoregressive_model)
|
||||
update_autoregressive_model(args.autoregressive_model)
|
||||
|
||||
if not hasattr(tts, 'autoregressive_model_hash'):
|
||||
tts.autoregressive_model_hash = hash_file(tts.autoregressive_model_path)
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit aca32a71f798ebd8487c113d41d1b4e9ee15c315
|
||||
Subproject commit 06bdf72b89af78609059a9e0bc87a1ac88bb1c44
|
Loading…
Reference in New Issue
Block a user