Spaces:
Running
on
Zero
Running
on
Zero
Upload modutils.py
Browse files- modutils.py +1 -1
modutils.py
CHANGED
@@ -120,7 +120,7 @@ def save_images(images: list[Image.Image], metadatas: list[str]):
|
|
120 |
output_images = []
|
121 |
for image, metadata in zip(images, metadatas):
|
122 |
info = PngImagePlugin.PngInfo()
|
123 |
-
info.add_text("
|
124 |
savefile = f"{str(uuid.uuid4())}.png"
|
125 |
image.save(savefile, "PNG", pnginfo=info)
|
126 |
output_images.append(str(Path(savefile).resolve()))
|
|
|
120 |
output_images = []
|
121 |
for image, metadata in zip(images, metadatas):
|
122 |
info = PngImagePlugin.PngInfo()
|
123 |
+
info.add_text("parameters", metadata)
|
124 |
savefile = f"{str(uuid.uuid4())}.png"
|
125 |
image.save(savefile, "PNG", pnginfo=info)
|
126 |
output_images.append(str(Path(savefile).resolve()))
|