don't gc.collect in windows

This commit is contained in:
McCloudS
2025-02-19 18:30:07 -07:00
parent bcb6349c3e
commit 7a09b0ad60

View File

@@ -1,4 +1,4 @@
subgen_version = '2025.02.91'
subgen_version = '2025.02.92'
from language_code import LanguageCode
from datetime import datetime
@@ -713,6 +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
gc.collect()
def isAudioFileExtension(file_extension):