keshan commited on
Commit
605484a
1 Parent(s): 63d833b

fixing a backslash issue in f string

Browse files
Files changed (1) hide show
  1. multispeaker-tts-sinhala.py +1 -1
multispeaker-tts-sinhala.py CHANGED
@@ -90,7 +90,7 @@ class SiTTS(datasets.GeneratorBasedBuilder):
90
 
91
  for id_, line in enumerate(lines):
92
  sentence = re.findall(r'"(.*?)"', line)[0].strip()
93
- file_path = f'{re.findall(r"(sin_[^\s]+)", line)[0]}.wav'
94
  field_values = [sentence, file_path]
95
 
96
  # set absolute path for wav audio file
 
90
 
91
  for id_, line in enumerate(lines):
92
  sentence = re.findall(r'"(.*?)"', line)[0].strip()
93
+ file_path = "{0}.wav".format(re.findall(r"(sin_[^\s]+)", line)[0])
94
  field_values = [sentence, file_path]
95
 
96
  # set absolute path for wav audio file