Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -91,6 +91,9 @@ def prepare_sentences(text, lang="mya"):
|
|
| 91 |
text = convert_numbers_to_words_num2words(text, lang)
|
| 92 |
print("Processed text", text)
|
| 93 |
|
|
|
|
|
|
|
|
|
|
| 94 |
paragraphs = [paragraph for paragraph in text.split("\n") if paragraph.strip()]
|
| 95 |
|
| 96 |
if lang.lower() == "vie":
|
|
|
|
| 91 |
text = convert_numbers_to_words_num2words(text, lang)
|
| 92 |
print("Processed text", text)
|
| 93 |
|
| 94 |
+
# Not sure why this can fix unclear pronunciation for the first word of vie
|
| 95 |
+
text = text.lower()
|
| 96 |
+
|
| 97 |
paragraphs = [paragraph for paragraph in text.split("\n") if paragraph.strip()]
|
| 98 |
|
| 99 |
if lang.lower() == "vie":
|