Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -228,7 +228,7 @@ async def upload_file(file: UploadFile = File(...), padding_type: str = Form(...
|
|
228 |
|
229 |
# Resize the image for display (512px by 512px)
|
230 |
display_img = rectangled_img.copy()
|
231 |
-
if (padding_type=="top_bottom")
|
232 |
display_img.thumbnail((512, *)) # Resize for display
|
233 |
else
|
234 |
display_img.thumbnail((*, 512)) # Resize for display
|
|
|
228 |
|
229 |
# Resize the image for display (512px by 512px)
|
230 |
display_img = rectangled_img.copy()
|
231 |
+
if (padding_type=="top_bottom"):
|
232 |
display_img.thumbnail((512, *)) # Resize for display
|
233 |
else
|
234 |
display_img.thumbnail((*, 512)) # Resize for display
|