Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,7 +53,7 @@ def preprocess_image(image, new_width=150):
|
|
| 53 |
|
| 54 |
# Resize the image for ASCII aspect ratio
|
| 55 |
width, height = image.size
|
| 56 |
-
aspect_ratio = height / width * 0.
|
| 57 |
new_height = int(aspect_ratio * new_width)
|
| 58 |
resized_image = Image.fromarray(enhanced_edges).resize((new_width, new_height))
|
| 59 |
|
|
|
|
| 53 |
|
| 54 |
# Resize the image for ASCII aspect ratio
|
| 55 |
width, height = image.size
|
| 56 |
+
aspect_ratio = height / width * 0.5 # Adjusting for ASCII aspect ratio
|
| 57 |
new_height = int(aspect_ratio * new_width)
|
| 58 |
resized_image = Image.fromarray(enhanced_edges).resize((new_width, new_height))
|
| 59 |
|