HusseinBashir commited on
Commit
4557f3e
·
verified ·
1 Parent(s): d5daef6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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
- # ➤ Haddii jumladda ku dhammaato zamzam ama samsam, ku dar " ah"
98
- if re.search(r'(?i)(zamzam|samsam)[\s\.\,\!\?]*$', text.strip()):
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