Alidr79 commited on
Commit
128b52a
·
verified ·
1 Parent(s): 27f0dff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -82,11 +82,11 @@ def tts_fn(slider_value, input_text):
82
  speaker_embedding = torch.tensor(speaker_embedding).unsqueeze(0)
83
 
84
  phonemes = PersianG2Pconverter.transliterate(input_text, tidy = False, secret = True)
85
- text = "</s>"
86
- for i in phonemes.replace(' .', '').split(" "):
87
- text += i + " <pad> "
88
 
89
- text += "</s>"
90
 
91
  print("sentence:", input_text)
92
  print("sentence phonemes:", text)
 
82
  speaker_embedding = torch.tensor(speaker_embedding).unsqueeze(0)
83
 
84
  phonemes = PersianG2Pconverter.transliterate(input_text, tidy = False, secret = True)
85
+ # text = "</s>"
86
+ # for i in phonemes.replace(' .', '').split(" "):
87
+ # text += i + " <pad> "
88
 
89
+ text = phonemes
90
 
91
  print("sentence:", input_text)
92
  print("sentence phonemes:", text)