SPACERUNNER99 commited on
Commit
bc37dbd
·
verified ·
1 Parent(s): f173dbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -186,7 +186,7 @@ def create_subtitle_clips(subtitles, videosize, fontsize, font, color, debug):
186
  video_width, video_height = videosize
187
  reshaped_text = arabic_reshaper.reshape(subtitle.text)
188
  bidi_text = get_display(reshaped_text)
189
- text_clip = TextClip(font, bidi_text, font_size=fontsize, color=color, bg_color='black', method='label', text_align='right').with_start(start_time).with_duration(duration
190
  subtitle_x_position = 'center'
191
  subtitle_y_position = video_height * 4 / 5
192
  text_position = (subtitle_x_position, subtitle_y_position)
 
186
  video_width, video_height = videosize
187
  reshaped_text = arabic_reshaper.reshape(subtitle.text)
188
  bidi_text = get_display(reshaped_text)
189
+ text_clip = TextClip(font, bidi_text, font_size=fontsize, color=color, bg_color='black', method='label', text_align='right').with_start(start_time).with_duration(duration)
190
  subtitle_x_position = 'center'
191
  subtitle_y_position = video_height * 4 / 5
192
  text_position = (subtitle_x_position, subtitle_y_position)