Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -73,7 +73,7 @@ def parse_info(image, json_data):
|
|
| 73 |
|
| 74 |
def estimate_co2(image):
|
| 75 |
resized_image = image.resize(
|
| 76 |
-
(1024, int(1024 *
|
| 77 |
Image.Resampling.LANCZOS
|
| 78 |
)
|
| 79 |
|
|
|
|
| 73 |
|
| 74 |
def estimate_co2(image):
|
| 75 |
resized_image = image.resize(
|
| 76 |
+
(1024, int(1024 * image.size[1] / image.size[0])),
|
| 77 |
Image.Resampling.LANCZOS
|
| 78 |
)
|
| 79 |
|