Update app.py
Browse files
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"].
|
| 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 |
|