Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ def generate_meme(img_path, top_text, middle_text, bottom_text):
|
|
| 19 |
img = Image.open(img_path)
|
| 20 |
draw = ImageDraw.Draw(img)
|
| 21 |
|
| 22 |
-
font_path = "
|
| 23 |
font_size_top = calculate_font_size(img.width, img.height, top_text)
|
| 24 |
font_size_middle = calculate_font_size(img.width, img.height, middle_text)
|
| 25 |
font_size_bottom = calculate_font_size(img.width, img.height, bottom_text)
|
|
|
|
| 19 |
img = Image.open(img_path)
|
| 20 |
draw = ImageDraw.Draw(img)
|
| 21 |
|
| 22 |
+
font_path = "Nasa21-l23X.ttf"
|
| 23 |
font_size_top = calculate_font_size(img.width, img.height, top_text)
|
| 24 |
font_size_middle = calculate_font_size(img.width, img.height, middle_text)
|
| 25 |
font_size_bottom = calculate_font_size(img.width, img.height, bottom_text)
|