From b2d238eb845241795fce777cd5a24960a3006e79 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 7 Dec 2022 01:35:04 -0800 Subject: [PATCH] Fix a mix-up of "code" vs. "seed" The UI at the top-level facing the users uses "code", but the API down deep uses "seed" so there has to be a switch at some point, which wasn't quite correct before this fix. --- generate-image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate-image.py b/generate-image.py index 229428f..3a2d3f3 100755 --- a/generate-image.py +++ b/generate-image.py @@ -39,7 +39,7 @@ def save_artifact(artifact, prompt): img = Image.open(io.BytesIO(artifact.binary)) img.save(filename) - return {"seed": seed, "prompt": prompt, + return {"code": seed, "prompt": prompt, "filename": filename.removeprefix(DOCUMENT_ROOT)} def main() -> None: -- 2.43.0