From ce476bbe7c109c70293ccc26752cd50327e2add2 Mon Sep 17 00:00:00 2001 From: Ellison Patterson <3533001+ellisonpatterson@users.noreply.github.com> Date: Tue, 31 Oct 2023 11:08:53 -0400 Subject: [PATCH] Update subgen.py Set model to none rather than deleting it to avoid raising a NameError exception --- subgen/subgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subgen/subgen.py b/subgen/subgen.py index 39f60da..b5bb000 100644 --- a/subgen/subgen.py +++ b/subgen/subgen.py @@ -226,7 +226,7 @@ def delete_model(): if len(files_to_transcribe) == 0: global model logging.debug("Queue is empty, clearing/releasing VRAM") - del model + model = None gc.collect() def get_lang_pair(whisper_languages, key):