NLPV commited on
Commit
7343cfb
·
verified ·
1 Parent(s): 952a2cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -57,13 +57,8 @@ def process_video(video_path, caption="Your Caption"):
57
  )
58
  except Exception as e:
59
  print("Font fallback used due to error:", e)
60
- text_clip = TextClip(
61
- caption,
62
- fontsize=50,
63
- color='white',
64
- method='caption',
65
- size=(clip.w, None)
66
- )
67
 
68
  text_clip = text_clip.set_position(("center", "bottom")).set_duration(clip.duration)
69
  final_video = CompositeVideoClip([clip, text_clip])
 
57
  )
58
  except Exception as e:
59
  print("Font fallback used due to error:", e)
60
+ text_clip = TextClip(caption, font ="Arial-Bold", fontsize = 50, color ="black")
61
+
 
 
 
 
 
62
 
63
  text_clip = text_clip.set_position(("center", "bottom")).set_duration(clip.duration)
64
  final_video = CompositeVideoClip([clip, text_clip])