Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,8 @@ def process_video(video_path, caption="Your Caption"):
|
|
18 |
|
19 |
# Add caption
|
20 |
draw = ImageDraw.Draw(image)
|
21 |
-
font = ImageFont.
|
|
|
22 |
# Make sure Arial.ttf is available
|
23 |
text_position = (50, image.height - 100)
|
24 |
draw.text(text_position, caption, (255, 255, 255), font=font)
|
|
|
18 |
|
19 |
# Add caption
|
20 |
draw = ImageDraw.Draw(image)
|
21 |
+
font = ImageFont.load_default()
|
22 |
+
font = ImageFont.load_default()
|
23 |
# Make sure Arial.ttf is available
|
24 |
text_position = (50, image.height - 100)
|
25 |
draw.text(text_position, caption, (255, 255, 255), font=font)
|