Spaces:
Runtime error
Runtime error
Update utils.py
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("parameters", metadata_str)
|
173 |
image.save(filepath, "PNG", pnginfo=info)
|
174 |
return filepath
|
175 |
|