forked from mrq/ai-voice-cloning
(try to) unload voicefixer if it raises an error during loading voicefixer
This commit is contained in:
parent
dc1902b91c
commit
a01eb10960
|
@ -2069,6 +2069,9 @@ def load_voicefixer(restart=False):
|
||||||
print("Loaded Voicefixer")
|
print("Loaded Voicefixer")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Error occurred while tring to initialize voicefixer: {e}")
|
print(f"Error occurred while tring to initialize voicefixer: {e}")
|
||||||
|
if voicefixer:
|
||||||
|
del voicefixer
|
||||||
|
voicefixer = None
|
||||||
|
|
||||||
def unload_voicefixer():
|
def unload_voicefixer():
|
||||||
global voicefixer
|
global voicefixer
|
||||||
|
|
Loading…
Reference in New Issue
Block a user