AliJabbarpour commited on
Commit
c32518e
·
verified ·
1 Parent(s): bacc303

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def realign_word_timestamps(waveform_16k, words, whisper_start, whisper_end):
49
 
50
  clean_words = []
51
  for w in words:
52
- token = "".join(ch for ch in w["word"].upper() if ch in align_dictionary)
53
  if token:
54
  clean_words.append((w, token))
55
 
 
49
 
50
  clean_words = []
51
  for w in words:
52
+ token = "".join(ch for ch in w["word"].lower() if ch in align_dictionary)
53
  if token:
54
  clean_words.append((w, token))
55