NeuralFalcon commited on
Commit
a60c10f
·
verified ·
1 Parent(s): c82708e

Update subtitle.py

Browse files
Files changed (1) hide show
  1. subtitle.py +1 -1
subtitle.py CHANGED
@@ -253,7 +253,7 @@ def whisper_subtitle(uploaded_file, source_language):
253
  word_level_srt(word_timestamps, srt_path=word_srt_path)
254
  write_sentence_srt(
255
  word_timestamps, output_file=shorts_srt_path, max_lines=1,
256
- max_duration_s=3.0, max_chars_per_line=17
257
  )
258
  write_sentence_srt(
259
  word_timestamps, output_file=custom_srt_path, max_lines=2,
 
253
  word_level_srt(word_timestamps, srt_path=word_srt_path)
254
  write_sentence_srt(
255
  word_timestamps, output_file=shorts_srt_path, max_lines=1,
256
+ max_duration_s=2.0, max_chars_per_line=10
257
  )
258
  write_sentence_srt(
259
  word_timestamps, output_file=custom_srt_path, max_lines=2,