Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
CjangCjengh
/
Sanskrit-TTS
like
12
Runtime error
App
Files
Files
Community
5
Fetching metadata from the HF Docker repository...
aa7b11d
Sanskrit-TTS
/
text
/
cleaners.py
CjangCjengh
files uploaded
4b37b7e
over 2 years ago
raw
Copy download link
history
blame
Safe
176 Bytes
def
sanskrit_cleaners
(
text
):
text = text.replace(
'॥'
,
'।'
).replace(
'ॐ'
,
'ओम्'
)
if
len
(text)==
0
or
text[-
1
] !=
'।'
:
text +=
' ।'
return
text