Fix killing a voice generation because I must have broken it during migration

This commit is contained in:
mrq 2023-02-18 19:54:21 +00:00
parent cd8919e65c
commit 58c981d714

View File

@ -714,7 +714,8 @@ def reload_tts():
setup_tortoise(restart=True)
def cancel_generate():
tortoise.api.STOP_SIGNAL = True
from tortoise.api import STOP_SIGNAL
STOP_SIGNAL = True
def get_voice_list(dir=get_voice_dir()):
os.makedirs(dir, exist_ok=True)