Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,15 +78,14 @@ def normalize_text(text):
|
|
| 78 |
'=': 'egwal',
|
| 79 |
'+': 'balaas',
|
| 80 |
'#': 'haash'
|
| 81 |
-
'ZamZam': 'samsam'
|
| 82 |
-
'Zamzam': 'samsam'
|
| 83 |
-
'zamzam': 'samsam'
|
| 84 |
}
|
| 85 |
for sym, word in symbol_map.items():
|
| 86 |
text = text.replace(sym, ' ' + word + ' ')
|
| 87 |
text = text.replace("KH", "qa").replace("Z", "S")
|
| 88 |
text = text.replace("SH", "SHa'a").replace("DH", "Dha'a")
|
| 89 |
-
text = text.replace("ZamZam", "
|
|
|
|
|
|
|
| 90 |
return text
|
| 91 |
|
| 92 |
def tts(text):
|
|
|
|
| 78 |
'=': 'egwal',
|
| 79 |
'+': 'balaas',
|
| 80 |
'#': 'haash'
|
|
|
|
|
|
|
|
|
|
| 81 |
}
|
| 82 |
for sym, word in symbol_map.items():
|
| 83 |
text = text.replace(sym, ' ' + word + ' ')
|
| 84 |
text = text.replace("KH", "qa").replace("Z", "S")
|
| 85 |
text = text.replace("SH", "SHa'a").replace("DH", "Dha'a")
|
| 86 |
+
text = text.replace("ZamZam", "samsam")
|
| 87 |
+
text = text.replace("Zamzam", "samsam")
|
| 88 |
+
text = text.replace("zamzam", "samsam")
|
| 89 |
return text
|
| 90 |
|
| 91 |
def tts(text):
|