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.truetype("arial.ttf", 40)
|
|
|
|
| 22 |
text_position = (50, image.height - 100)
|
| 23 |
draw.text(text_position, caption, (255, 255, 255), font=font)
|
| 24 |
|
|
|
|
| 18 |
|
| 19 |
# Add caption
|
| 20 |
draw = ImageDraw.Draw(image)
|
| 21 |
+
font = ImageFont.truetype("arial.ttf", 40)
|
| 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)
|
| 25 |
|