This commit is contained in:
mrq 2023-03-03 18:51:33 +00:00
parent 9fb4aa7917
commit e1f3ffa08c
2 changed files with 5 additions and 3 deletions

View File

@ -1316,6 +1316,8 @@ def setup_args():
if args.listen_port is not None: if args.listen_port is not None:
args.listen_port = int(args.listen_port) args.listen_port = int(args.listen_port)
if args.listen_port == 0:
args.listen_port = None
return args return args
@ -1476,10 +1478,10 @@ def load_tts( restart=False, model=None ):
tts_loading = True tts_loading = True
try: 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: except Exception as e:
tts = TextToSpeech(minor_optimizations=not args.low_vram) 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'): if not hasattr(tts, 'autoregressive_model_hash'):
tts.autoregressive_model_hash = hash_file(tts.autoregressive_model_path) tts.autoregressive_model_hash = hash_file(tts.autoregressive_model_path)

@ -1 +1 @@
Subproject commit aca32a71f798ebd8487c113d41d1b4e9ee15c315 Subproject commit 06bdf72b89af78609059a9e0bc87a1ac88bb1c44