Spaces:
Sleeping
Sleeping
Commit
·
bf0eeeb
1
Parent(s):
a5d8933
Update app.py
Browse files
app.py
CHANGED
@@ -28,9 +28,6 @@ def resize_and_overlay_image(input_image, reduction_percentage, shift_pixels, sh
|
|
28 |
crop_top = int(height * crop_top_percentage / 100)
|
29 |
crop_bottom = int(height * crop_bottom_percentage / 100)
|
30 |
|
31 |
-
# Crop the top and/or bottom of the image
|
32 |
-
img = img[crop_top:height - crop_bottom, :]
|
33 |
-
|
34 |
# Calculate the new dimensions based on the reduction percentage
|
35 |
new_height = int(height * reduction_percentage / 100)
|
36 |
new_width = int(width * reduction_percentage / 100)
|
@@ -76,3 +73,4 @@ iface = gr.Interface(
|
|
76 |
|
77 |
if __name__ == "__main__":
|
78 |
iface.launch()
|
|
|
|
28 |
crop_top = int(height * crop_top_percentage / 100)
|
29 |
crop_bottom = int(height * crop_bottom_percentage / 100)
|
30 |
|
|
|
|
|
|
|
31 |
# Calculate the new dimensions based on the reduction percentage
|
32 |
new_height = int(height * reduction_percentage / 100)
|
33 |
new_width = int(width * reduction_percentage / 100)
|
|
|
73 |
|
74 |
if __name__ == "__main__":
|
75 |
iface.launch()
|
76 |
+
|