Update subgen.py

Set model to none rather than deleting it to avoid raising a NameError exception
This commit is contained in:
Ellison Patterson
2023-10-31 11:08:53 -04:00
committed by GitHub
parent ee509e1377
commit ce476bbe7c

View File

@@ -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):