Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,8 @@ def segment_everything(
|
|
81 |
plt.close(fig)
|
82 |
buf.seek(0)
|
83 |
|
84 |
-
|
|
|
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
|