Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
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
|