From: Carl Worth Date: Wed, 7 Dec 2022 09:35:04 +0000 (-0800) Subject: Fix a mix-up of "code" vs. "seed" X-Git-Url: https://git.cworth.org/git?p=zombocom-ai;a=commitdiff_plain;h=b2d238eb845241795fce777cd5a24960a3006e79 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. --- 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: