theSure commited on
Commit
56c7591
·
verified ·
1 Parent(s): b1e0393

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -101,7 +101,7 @@ def predict(
101
  srgb_profile = ImageCms.createProfile("sRGB")
102
  io_handle = io.BytesIO(icc_profile)
103
  src_profile = ImageCms.ImageCmsProfile(io_handle)
104
- input_image = ImageCms.profileToProfile(input_image["background"], src_profile, srgb_profile)
105
  input_image.info.pop('icc_profile', None)
106
 
107
  if size1 < size2:
 
101
  srgb_profile = ImageCms.createProfile("sRGB")
102
  io_handle = io.BytesIO(icc_profile)
103
  src_profile = ImageCms.ImageCmsProfile(io_handle)
104
+ input_image = ImageCms.profileToProfile(input_image, src_profile, srgb_profile)
105
  input_image.info.pop('icc_profile', None)
106
 
107
  if size1 < size2: