Spaces:
Runtime error
Runtime error
zhzluke96 commited on
Commit ·
c3d1bca
1
Parent(s): 8a3a4ec
update
Browse files6 unmodified lines78910111226 unmodified lines394041424344456 unmodified linesimport loggingimport gclogger = logging.getLogger(__name__)chat_tts = None26 unmodified linesdef initialize_chat_tts():with lock:if chat_tts is None:model_thread = threading.Thread(target=load_chat_tts_in_thread)model_thread.start()model_thread.join()6 unmodified lines789101112131426 unmodified lines414243444546476 unmodified linesimport loggingimport gcimport torch.multiprocessing as mplogger = logging.getLogger(__name__)chat_tts = None26 unmodified linesdef initialize_chat_tts():with lock:if chat_tts is None:model_thread = mp.Process(target=load_chat_tts_in_thread)model_thread.start()model_thread.join()
modules/models.py+3-1