Spaces:
Running
on
Zero
Running
on
Zero
zhzluke96
commited on
Commit
•
563fae6
1
Parent(s):
21f455c
update
Browse files- modules/models.py +1 -0
modules/models.py
CHANGED
@@ -51,6 +51,7 @@ def initialize_chat_tts():
|
|
51 |
def load_chat_tts():
|
52 |
if chat_tts is None:
|
53 |
initialize_chat_tts().join()
|
|
|
54 |
if chat_tts is None:
|
55 |
raise Exception("Failed to load ChatTTS models")
|
56 |
return chat_tts
|
|
|
51 |
def load_chat_tts():
|
52 |
if chat_tts is None:
|
53 |
initialize_chat_tts().join()
|
54 |
+
load_event.wait()
|
55 |
if chat_tts is None:
|
56 |
raise Exception("Failed to load ChatTTS models")
|
57 |
return chat_tts
|