itacaiunas commited on
Commit
2e32e4e
·
1 Parent(s): 2e060af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -25,7 +25,8 @@ def image_download_button(pil_image, filename: str, fmt: str, label="Download"):
25
  mime = "image/png"
26
 
27
  buf = BytesIO()
28
- pil_image.save(buf, format=pil_format)
 
29
 
30
  return st.download_button(
31
  label=label,
 
25
  mime = "image/png"
26
 
27
  buf = BytesIO()
28
+ pil_image.save(buf, format='PNG')
29
+
30
 
31
  return st.download_button(
32
  label=label,