rishi9440 commited on
Commit
054ddf0
1 Parent(s): d04db62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -16,7 +16,6 @@ def V_SPACE(lines):
16
  def image_download_button(pil_image, filename: str, fmt: str, label="Download"):
17
  if fmt not in ["jpg", "png"]:
18
  raise Exception(f"Unknown image format (Available: {fmt} - case sensitive)")
19
- pil_image = pil_image+"/?target=external"
20
  pil_format = "JPEG" if fmt == "jpg" else "PNG"
21
  file_format = "jpg" if fmt == "jpg" else "png"
22
  mime = "image/jpeg/?target=external" if fmt == "jpg" else "image/png/?target=external"
 
16
  def image_download_button(pil_image, filename: str, fmt: str, label="Download"):
17
  if fmt not in ["jpg", "png"]:
18
  raise Exception(f"Unknown image format (Available: {fmt} - case sensitive)")
 
19
  pil_format = "JPEG" if fmt == "jpg" else "PNG"
20
  file_format = "jpg" if fmt == "jpg" else "png"
21
  mime = "image/jpeg/?target=external" if fmt == "jpg" else "image/png/?target=external"