Update subgen.py
Set model to none rather than deleting it to avoid raising a NameError exception
This commit is contained in:
committed by
GitHub
parent
ee509e1377
commit
ce476bbe7c
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user