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.
img = Image.open(io.BytesIO(artifact.binary))
img.save(filename)
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:
"filename": filename.removeprefix(DOCUMENT_ROOT)}
def main() -> None: