ganga4364 commited on
Commit
ad0ff30
·
verified ·
1 Parent(s): 3cd13ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ synthesiser = pipeline("text-to-speech", model_id) # Use GPU if available
21
  # Custom function to split Tibetan text into sentences
22
  def prepare_sentences(text, lang="bod"):
23
  # Convert Tibetan punctuation "།" into a period to help split sentences
24
- text = text.replace("།", ".")
25
 
26
  # Split the text into sentences based on the periods
27
  sentences = [sentence.strip() for sentence in text.split('.') if sentence.strip()]
 
21
  # Custom function to split Tibetan text into sentences
22
  def prepare_sentences(text, lang="bod"):
23
  # Convert Tibetan punctuation "།" into a period to help split sentences
24
+ text = text.replace("། ", ".")
25
 
26
  # Split the text into sentences based on the periods
27
  sentences = [sentence.strip() for sentence in text.split('.') if sentence.strip()]