NLPV commited on
Commit
a2a931e
·
verified ·
1 Parent(s): dce3fc6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
  # 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)