Spaces:
Running
on
Zero
Running
on
Zero
Upload 2 files
Browse files- dc.py +1 -1
- modutils.py +1 -1
dc.py
CHANGED
@@ -1391,7 +1391,7 @@ def save_images(images: list[Image.Image], metadatas: list[str]):
|
|
1391 |
output_images = []
|
1392 |
for image, metadata in zip(images, metadatas):
|
1393 |
info = PngImagePlugin.PngInfo()
|
1394 |
-
info.add_text("
|
1395 |
savefile = "image.png"
|
1396 |
image.save(savefile, "PNG", pnginfo=info)
|
1397 |
output_images.append(str(Path(savefile).resolve()))
|
|
|
1391 |
output_images = []
|
1392 |
for image, metadata in zip(images, metadatas):
|
1393 |
info = PngImagePlugin.PngInfo()
|
1394 |
+
info.add_text("parameters", metadata)
|
1395 |
savefile = "image.png"
|
1396 |
image.save(savefile, "PNG", pnginfo=info)
|
1397 |
output_images.append(str(Path(savefile).resolve()))
|
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()))
|