From 58c981d714e5d9354e9f9d652fc4daf9198e9de3 Mon Sep 17 00:00:00 2001 From: mrq Date: Sat, 18 Feb 2023 19:54:21 +0000 Subject: [PATCH] Fix killing a voice generation because I must have broken it during migration --- src/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils.py b/src/utils.py index 0274589..82fe106 100755 --- a/src/utils.py +++ b/src/utils.py @@ -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)