From 645e0c98cb7c946be7fccc2e8a3d8845ff5eab4e Mon Sep 17 00:00:00 2001 From: McCloudS Date: Wed, 19 Feb 2025 19:50:27 -0700 Subject: [PATCH] Update subgen.py --- subgen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subgen.py b/subgen.py index 26ad119..4c5880f 100644 --- a/subgen.py +++ b/subgen.py @@ -1,4 +1,4 @@ -subgen_version = '2025.02.92' +subgen_version = '2025.02.93' from language_code import LanguageCode from datetime import datetime @@ -713,7 +713,7 @@ def delete_model(): if transcribe_device.lower() == 'cuda' and torch.cuda.is_available(): torch.cuda.empty_cache() logging.debug("CUDA cache cleared.") - if os.name != 'nt': # don't garbage collect on Windows + if os.name != 'nt': # don't garbage collect on Windows, it will crash the script gc.collect() def isAudioFileExtension(file_extension):