None1145 commited on
Commit
d86778e
·
verified ·
1 Parent(s): 486ae62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -260,7 +260,10 @@ for folder_name in folder_names:
260
  models_info[speaker]["transcript"] = {}
261
  with open(f"{data_path}/{speaker}.list", "r", encoding="utf-8") as f:
262
  for line in f.read().split("\n"):
263
- wav = f"{models_folder_path}/{folder_name}/Data/{line.split('|')[0].split('/')[1]}"
 
 
 
264
  text = line.split("|")[3]
265
  print(wav, text)
266
  models_info[speaker]["transcript"][text] = wav
 
260
  models_info[speaker]["transcript"] = {}
261
  with open(f"{data_path}/{speaker}.list", "r", encoding="utf-8") as f:
262
  for line in f.read().split("\n"):
263
+ try:
264
+ wav = f"{models_folder_path}/{folder_name}/Data/{line.split('|')[0].split('/')[1]}"
265
+ except:
266
+ break
267
  text = line.split("|")[3]
268
  print(wav, text)
269
  models_info[speaker]["transcript"][text] = wav