1
0
Fork 0

(try to) unload voicefixer if it raises an error during loading voicefixer

master
mrq 2023-03-09 04:28:14 +07:00
parent dc1902b91c
commit a01eb10960
1 changed files with 3 additions and 0 deletions

@ -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