Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,15 @@ def process_video(video_path, caption="Your Caption"):
|
|
33 |
keywords_list = [kw[0] for kw in keywords]
|
34 |
|
35 |
# Burn caption into video
|
36 |
-
txt_clip = TextClip(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
final = CompositeVideoClip([clip, txt_clip])
|
38 |
|
39 |
# Save processed video
|
|
|
33 |
keywords_list = [kw[0] for kw in keywords]
|
34 |
|
35 |
# Burn caption into video
|
36 |
+
txt_clip = TextClip(
|
37 |
+
txt=caption,
|
38 |
+
fontsize=50,
|
39 |
+
color='white',
|
40 |
+
font='Arial',
|
41 |
+
method='caption',
|
42 |
+
size=(clip.w, None)
|
43 |
+
).set_position(("center", "bottom")).set_duration(clip.duration)
|
44 |
+
|
45 |
final = CompositeVideoClip([clip, txt_clip])
|
46 |
|
47 |
# Save processed video
|