aagoluoglu commited on
Commit
3db2126
·
verified ·
1 Parent(s): b4505b7

Update app.py

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