Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -357,7 +357,7 @@ def create_subtitle_clips(subtitles, videosize, fontsize, font, color, debug):
|
|
357 |
subtitle_y_position = video_height * 0.74
|
358 |
text_position = (subtitle_x_position, subtitle_y_position)
|
359 |
clip_to_overlay = CompositeVideoClip([color_clip.with_position(text_position), text_clip.with_position(text_position)])
|
360 |
-
clip_to_overlay = clip_to_overlay.
|
361 |
subtitle_clips.append(clip_to_overlay)
|
362 |
|
363 |
return subtitle_clips
|
|
|
357 |
subtitle_y_position = video_height * 0.74
|
358 |
text_position = (subtitle_x_position, subtitle_y_position)
|
359 |
clip_to_overlay = CompositeVideoClip([color_clip.with_position(text_position), text_clip.with_position(text_position)])
|
360 |
+
clip_to_overlay = clip_to_overlay.with_position('center')
|
361 |
subtitle_clips.append(clip_to_overlay)
|
362 |
|
363 |
return subtitle_clips
|