andreinigo commited on
Commit
0ef34b0
·
1 Parent(s): 91bb5aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def generate_caption(image):
40
 
41
  # Determine font size
42
  max_width = int(pil_image.width * 0.9)
43
- font_size = int(max_width / (len(meme_text) / 2))
44
  font = ImageFont.truetype("impact.ttf", font_size)
45
 
46
  # Calculate the width for text wrap
 
40
 
41
  # Determine font size
42
  max_width = int(pil_image.width * 0.9)
43
+ font_size = 60
44
  font = ImageFont.truetype("impact.ttf", font_size)
45
 
46
  # Calculate the width for text wrap