Skip to content

Commit d44a942

Browse files
chore(format): run black on dev (#45)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 09285d5 commit d44a942

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

infer/lib/train/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,10 @@ def load_wav_to_torch(full_path):
252252

253253
def load_filepaths_and_text(filename, split="|"):
254254
try:
255-
return [line.strip().split(split) for line in codecs.open(filename, encoding="utf-8")]
255+
return [
256+
line.strip().split(split)
257+
for line in codecs.open(filename, encoding="utf-8")
258+
]
256259
except UnicodeDecodeError as e:
257260
logger.error("Error loading file %s: %s", filename, e)
258261

0 commit comments

Comments
 (0)