mirror of
https://github.com/Dasemu/Transcriptarr.git
synced 2026-11-27 23:46:08 +00:00
Update subgen.py
Set model to none rather than deleting it to avoid raising a NameError exception
This commit is contained in:
1 parent
ee509e1377
commit
ce476bbe7c
1 file changed
+1
-1
+1
-1
@@ -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