Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def calculate_optimal_dimensions(image: Image.Image):
|
|
22 |
# Set constants
|
23 |
MIN_ASPECT_RATIO = 9 / 16
|
24 |
MAX_ASPECT_RATIO = 16 / 9
|
25 |
-
FIXED_DIMENSION =
|
26 |
|
27 |
# Calculate the aspect ratio of the original image
|
28 |
original_aspect_ratio = original_width / original_height
|
|
|
22 |
# Set constants
|
23 |
MIN_ASPECT_RATIO = 9 / 16
|
24 |
MAX_ASPECT_RATIO = 16 / 9
|
25 |
+
FIXED_DIMENSION = 2048
|
26 |
|
27 |
# Calculate the aspect ratio of the original image
|
28 |
original_aspect_ratio = original_width / original_height
|