This commit is contained in:
mrq 2023-02-09 02:39:08 +00:00
parent b23d6b4b4c
commit 50b4e2c458

2
app.py
View File

@ -236,7 +236,7 @@ def read_generate_settings(file, save_latents=True):
del j['latents'] del j['latents']
if latents and save_latents: if latents and save_latents:
outdir='/voices/.temp/' outdir='./voices/.temp/'
os.makedirs(outdir, exist_ok=True) os.makedirs(outdir, exist_ok=True)
with open(f'{outdir}/cond_latents.pth', 'wb') as f: with open(f'{outdir}/cond_latents.pth', 'wb') as f:
f.write(latents) f.write(latents)