Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -170,7 +170,7 @@ async def upload_file(file: UploadFile = File(...)):
|
|
170 |
# Await file upload
|
171 |
contents = await file.read()
|
172 |
img = Image.open(BytesIO(contents)).convert("RGB")
|
173 |
-
rectangled_img =
|
174 |
|
175 |
# Save the rectangle image (original size)
|
176 |
output = BytesIO()
|
|
|
170 |
# Await file upload
|
171 |
contents = await file.read()
|
172 |
img = Image.open(BytesIO(contents)).convert("RGB")
|
173 |
+
rectangled_img = fill_rectangle_cropper(img)
|
174 |
|
175 |
# Save the rectangle image (original size)
|
176 |
output = BytesIO()
|