Spaces:
Running
on
Zero
Running
on
Zero
rollback
Browse files
utils.py
CHANGED
@@ -169,7 +169,7 @@ def save_image(image, metadata, output_dir, is_colab):
|
|
169 |
filepath = os.path.join(output_dir, filename)
|
170 |
metadata_str = json.dumps(metadata)
|
171 |
info = PngImagePlugin.PngInfo()
|
172 |
-
info.add_text("
|
173 |
image.save(filepath, "PNG", pnginfo=info)
|
174 |
return filepath
|
175 |
|
|
|
169 |
filepath = os.path.join(output_dir, filename)
|
170 |
metadata_str = json.dumps(metadata)
|
171 |
info = PngImagePlugin.PngInfo()
|
172 |
+
info.add_text("metadata", metadata_str)
|
173 |
image.save(filepath, "PNG", pnginfo=info)
|
174 |
return filepath
|
175 |
|