Spaces:
Build error
Build error
oops
Browse files- src/utils.py +4 -2
- tortoise-tts +1 -1
src/utils.py
CHANGED
|
@@ -1316,6 +1316,8 @@ def setup_args():
|
|
| 1316 |
|
| 1317 |
if args.listen_port is not None:
|
| 1318 |
args.listen_port = int(args.listen_port)
|
|
|
|
|
|
|
| 1319 |
|
| 1320 |
return args
|
| 1321 |
|
|
@@ -1476,10 +1478,10 @@ def load_tts( restart=False, model=None ):
|
|
| 1476 |
|
| 1477 |
tts_loading = True
|
| 1478 |
try:
|
| 1479 |
-
tts = TextToSpeech(minor_optimizations=not args.low_vram, autoregressive_model_path=args.autoregressive_model
|
| 1480 |
except Exception as e:
|
| 1481 |
tts = TextToSpeech(minor_optimizations=not args.low_vram)
|
| 1482 |
-
|
| 1483 |
|
| 1484 |
if not hasattr(tts, 'autoregressive_model_hash'):
|
| 1485 |
tts.autoregressive_model_hash = hash_file(tts.autoregressive_model_path)
|
|
|
|
| 1316 |
|
| 1317 |
if args.listen_port is not None:
|
| 1318 |
args.listen_port = int(args.listen_port)
|
| 1319 |
+
if args.listen_port == 0:
|
| 1320 |
+
args.listen_port = None
|
| 1321 |
|
| 1322 |
return args
|
| 1323 |
|
|
|
|
| 1478 |
|
| 1479 |
tts_loading = True
|
| 1480 |
try:
|
| 1481 |
+
tts = TextToSpeech(minor_optimizations=not args.low_vram, autoregressive_model_path=args.autoregressive_model)
|
| 1482 |
except Exception as e:
|
| 1483 |
tts = TextToSpeech(minor_optimizations=not args.low_vram)
|
| 1484 |
+
update_autoregressive_model(args.autoregressive_model)
|
| 1485 |
|
| 1486 |
if not hasattr(tts, 'autoregressive_model_hash'):
|
| 1487 |
tts.autoregressive_model_hash = hash_file(tts.autoregressive_model_path)
|
tortoise-tts
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
Subproject commit
|
|
|
|
| 1 |
+
Subproject commit 06bdf72b89af78609059a9e0bc87a1ac88bb1c44
|