Spaces:
Running
on
Zero
Running
on
Zero
Upload app.py
Browse files
app.py
CHANGED
@@ -41,6 +41,7 @@ def normalize(text):
|
|
41 |
text = re.sub(r'[^\S \n]', ' ', text)
|
42 |
text = re.sub(r' +', ' ', text)
|
43 |
text = re.sub(r'(?<=\n) +(?=\n)', '', text)
|
|
|
44 |
return parens_to_angles(text).strip()
|
45 |
|
46 |
phonemizers = dict(
|
|
|
41 |
text = re.sub(r'[^\S \n]', ' ', text)
|
42 |
text = re.sub(r' +', ' ', text)
|
43 |
text = re.sub(r'(?<=\n) +(?=\n)', '', text)
|
44 |
+
text = re.sub(r'(?<=\d),(?=\d)', '', text)
|
45 |
return parens_to_angles(text).strip()
|
46 |
|
47 |
phonemizers = dict(
|