Alidr79 commited on
Commit
bf11475
1 Parent(s): fd9c4b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -110,11 +110,11 @@ def tts_fn(slider_value, input_text):
110
  speaker_embedding = torch.tensor(speaker_embedding).unsqueeze(0)
111
 
112
  phonemes = PersianG2Pconverter.transliterate(input_text, tidy = False, secret = True)
113
- # text = "</s>"
114
- # for i in phonemes.replace(' .', '').split(" "):
115
- # text += i + " <pad> "
116
 
117
- text = phonemes
118
 
119
  print("sentence:", input_text)
120
  print("sentence phonemes:", text)
 
110
  speaker_embedding = torch.tensor(speaker_embedding).unsqueeze(0)
111
 
112
  phonemes = PersianG2Pconverter.transliterate(input_text, tidy = False, secret = True)
113
+ text = "</s>"
114
+ for i in phonemes.replace(' .', '').split(" "):
115
+ text += i + " <pad> "
116
 
117
+ text += "</s>"
118
 
119
  print("sentence:", input_text)
120
  print("sentence phonemes:", text)