mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-02-02 16:23:58 +03:00
bugfix: select model slot
This commit is contained in:
parent
e6938250b6
commit
6ac69f3091
@ -98,7 +98,10 @@ class RVC:
|
||||
if val < 0:
|
||||
return True
|
||||
val = val % 1000 # Quick hack for same slot is selected
|
||||
if self.settings.modelSlots[val]:
|
||||
if (
|
||||
self.settings.modelSlots[val].modelFile is None
|
||||
or self.settings.modelSlots[val].modelFile == ""
|
||||
):
|
||||
print("[Voice Changer] slot does not have model.")
|
||||
return True
|
||||
self.prepareModel(val)
|
||||
|
Loading…
Reference in New Issue
Block a user