Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ def inference(audio):
|
|
| 27 |
transformation = jiwer.Compose([
|
| 28 |
jiwer.ToLowerCase(),
|
| 29 |
jiwer.RemovePunctuation(),
|
| 30 |
-
|
| 31 |
jiwer.RemoveMultipleSpaces(),
|
| 32 |
jiwer.ReduceToListOfListOfWords(word_delimiter=" ")
|
| 33 |
])
|
|
|
|
| 27 |
transformation = jiwer.Compose([
|
| 28 |
jiwer.ToLowerCase(),
|
| 29 |
jiwer.RemovePunctuation(),
|
| 30 |
+
jiwer.RemoveWhiteSpace(replace_by_space=True),
|
| 31 |
jiwer.RemoveMultipleSpaces(),
|
| 32 |
jiwer.ReduceToListOfListOfWords(word_delimiter=" ")
|
| 33 |
])
|