Spaces:
Running
Running
ciover2024
commited on
Commit
•
c7bf0c8
1
Parent(s):
948b6ac
Update app.py
Browse files
app.py
CHANGED
@@ -82,7 +82,7 @@ def resize_image(orig_image):
|
|
82 |
right_crop = new_width - int((new_width - old_width) / 2)
|
83 |
top_crop = int((new_height - old_height)/2)
|
84 |
bottom_crop = new_height - int((new_height - old_height) / 2)
|
85 |
-
cropped_image = resized_image.crop((
|
86 |
|
87 |
return cropped_image
|
88 |
|
|
|
82 |
right_crop = new_width - int((new_width - old_width) / 2)
|
83 |
top_crop = int((new_height - old_height)/2)
|
84 |
bottom_crop = new_height - int((new_height - old_height) / 2)
|
85 |
+
cropped_image = resized_image.crop((left_crop,top_crop,right_crop,bottom_crop))
|
86 |
|
87 |
return cropped_image
|
88 |
|