local5 commited on
Commit
a0d9843
·
verified ·
1 Parent(s): 1733bec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.55 # 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
 
 
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