NeuralFalcon commited on
Commit
04fc0d0
1 Parent(s): e85ddeb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -243,6 +243,8 @@ def word_level_srt(words_timestamp, srt_path="world_level_subtitle.srt",shorts=F
243
  end_time = convert_time_to_srt_format(word_info['end'])
244
  word=word_info['word']
245
  word =re.sub(punctuation_pattern, '', word)
 
 
246
  if shorts==False:
247
  word=word.replace("-","")
248
  srt_file.write(f"{i}\n{start_time} --> {end_time}\n{word}\n\n")
 
243
  end_time = convert_time_to_srt_format(word_info['end'])
244
  word=word_info['word']
245
  word =re.sub(punctuation_pattern, '', word)
246
+ if word.strip() == 'i':
247
+ word = "I"
248
  if shorts==False:
249
  word=word.replace("-","")
250
  srt_file.write(f"{i}\n{start_time} --> {end_time}\n{word}\n\n")