bugfix: non indexfile bug
This commit is contained in:
parent
cb0be0bf17
commit
38b614e88c
@ -154,7 +154,7 @@ class RVC:
|
|||||||
)
|
)
|
||||||
os.makedirs(slotDir, exist_ok=True)
|
os.makedirs(slotDir, exist_ok=True)
|
||||||
slotInfo.modelFile = self.moveToModelDir(slotInfo.modelFile, slotDir)
|
slotInfo.modelFile = self.moveToModelDir(slotInfo.modelFile, slotDir)
|
||||||
if slotInfo.indexFile is not None:
|
if slotInfo.indexFile is not None and len(slotInfo.indexFile) > 0:
|
||||||
slotInfo.indexFile = self.moveToModelDir(slotInfo.indexFile, slotDir)
|
slotInfo.indexFile = self.moveToModelDir(slotInfo.indexFile, slotDir)
|
||||||
json.dump(asdict(slotInfo), open(os.path.join(slotDir, "params.json"), "w"))
|
json.dump(asdict(slotInfo), open(os.path.join(slotDir, "params.json"), "w"))
|
||||||
self.loadSlots()
|
self.loadSlots()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user