Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def create_speaker_embedding(speaker_model, waveform: np.ndarray) -> np.ndarray:
|
|
| 22 |
|
| 23 |
|
| 24 |
def remove_special_characters_s(text: Text) -> Text:
|
| 25 |
-
chars_to_remove_regex = '[
|
| 26 |
# remove special characters
|
| 27 |
text = re.sub(chars_to_remove_regex, '', text)
|
| 28 |
text = re.sub("՚", "'", text)
|
|
|
|
| 22 |
|
| 23 |
|
| 24 |
def remove_special_characters_s(text: Text) -> Text:
|
| 25 |
+
chars_to_remove_regex = '[\-\…\–\"\“\%\‘\”\�\»\«\„\`\'́]'
|
| 26 |
# remove special characters
|
| 27 |
text = re.sub(chars_to_remove_regex, '', text)
|
| 28 |
text = re.sub("՚", "'", text)
|