diff --git a/src/utils.py b/src/utils.py index 5f21d04..665ac56 100755 --- a/src/utils.py +++ b/src/utils.py @@ -2069,6 +2069,9 @@ def load_voicefixer(restart=False): print("Loaded Voicefixer") except Exception as e: print(f"Error occurred while tring to initialize voicefixer: {e}") + if voicefixer: + del voicefixer + voicefixer = None def unload_voicefixer(): global voicefixer