actual image seed now written into web log rather than -1 (#428)

This commit is contained in:
Lincoln Stein 2022-09-07 17:56:59 -04:00 committed by GitHub
parent edada042b3
commit d1d044aa87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,6 +129,7 @@ class DreamServer(BaseHTTPRequestHandler):
name = f'{prefix}.{seed}.png'
path = pngwriter.save_image_and_prompt_to_png(image, f'{prompt} -S{seed}', name)
config['seed'] = seed
# Append post_data to log, but only once!
if not upscaled:
with open(os.path.join(self.outdir, "dream_web_log.txt"), "a") as log: