Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -94,9 +94,8 @@ def normalize_text(text):
|
|
| 94 |
text = text.replace("KH", "qa").replace("Z", "S")
|
| 95 |
text = text.replace("SH", "SHa'a").replace("DH", "Dha'a")
|
| 96 |
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
text += " "
|
| 100 |
|
| 101 |
return text
|
| 102 |
|
|
|
|
| 94 |
text = text.replace("KH", "qa").replace("Z", "S")
|
| 95 |
text = text.replace("SH", "SHa'a").replace("DH", "Dha'a")
|
| 96 |
|
| 97 |
+
if re.search(r'(?i)(zamzam|samsam)[\s\.\,\!\?]*$', text.strip()):
|
| 98 |
+
text += " " # 4 space
|
|
|
|
| 99 |
|
| 100 |
return text
|
| 101 |
|