qqwjq1981 commited on
Commit
80bf303
·
verified ·
1 Parent(s): edf5dd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -216,7 +216,7 @@ def add_transcript_to_video(video_path, translated_json, output_path):
216
  font=font_path,
217
  method='caption',
218
  color='yellow',
219
- fontsize=subtitle_font_size, # Use relative font size
220
  size=(max_subtitle_width, None) # Restrict the width to ensure wrapping
221
  ).with_start(entry["start"]).with_duration(entry["end"] - entry["start"]).with_position(('bottom')).with_opacity(0.7)
222
  text_clips.append(txt_clip)
 
216
  font=font_path,
217
  method='caption',
218
  color='yellow',
219
+ font_size=subtitle_font_size, # Use relative font size
220
  size=(max_subtitle_width, None) # Restrict the width to ensure wrapping
221
  ).with_start(entry["start"]).with_duration(entry["end"] - entry["start"]).with_position(('bottom')).with_opacity(0.7)
222
  text_clips.append(txt_clip)