aagoluoglu commited on
Commit
89aa0e5
·
verified ·
1 Parent(s): 886f51a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -70,7 +70,7 @@ def tif_bytes_to_pil_image(tif_bytes):
70
  bytes_io = io.BytesIO(tif_bytes)
71
 
72
  # Open the BytesIO object as an Image
73
- image = Image.open(bytes_io)
74
 
75
  return image
76
 
 
70
  bytes_io = io.BytesIO(tif_bytes)
71
 
72
  # Open the BytesIO object as an Image
73
+ image = Image.open(bytes_io).convert("RGB")
74
 
75
  return image
76