Deniel Dimitrov commited on
Commit
f977167
·
1 Parent(s): de4a0cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ def convert_to_ascii(image, text_size):
7
 
8
  width, height = image.size
9
  aspect_ratio = height / width
10
- new_width = text_size
11
  new_height = int(aspect_ratio * text_size * 0.5)
12
 
13
  resized_image = image.resize((new_width, new_height))
 
7
 
8
  width, height = image.size
9
  aspect_ratio = height / width
10
+ new_width = int(text_size)
11
  new_height = int(aspect_ratio * text_size * 0.5)
12
 
13
  resized_image = image.resize((new_width, new_height))