HimankJ commited on
Commit
a4d5dcd
·
verified ·
1 Parent(s): 7f8bd6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -81,7 +81,8 @@ def segment_everything(
81
  plt.close(fig)
82
  buf.seek(0)
83
 
84
- cropped_image = Image.open(buf)
 
85
  print('Crop type',cropped_image)
86
 
87
  return fig,cropped_image
 
81
  plt.close(fig)
82
  buf.seek(0)
83
 
84
+ cropped_img = Image.open(buf).convert("RGBA")
85
+ cropped_img = cropped_img.resize((1024, 682))
86
  print('Crop type',cropped_image)
87
 
88
  return fig,cropped_image