From d44a942882c8f8a28d748cbf4cb15bc0fd26459d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 12 Jun 2024 23:30:50 +0900 Subject: [PATCH] chore(format): run black on dev (#45) Co-authored-by: github-actions[bot] --- infer/lib/train/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/infer/lib/train/utils.py b/infer/lib/train/utils.py index b8f7e37..619624e 100644 --- a/infer/lib/train/utils.py +++ b/infer/lib/train/utils.py @@ -252,7 +252,10 @@ def load_wav_to_torch(full_path): def load_filepaths_and_text(filename, split="|"): try: - return [line.strip().split(split) for line in codecs.open(filename, encoding="utf-8")] + return [ + line.strip().split(split) + for line in codecs.open(filename, encoding="utf-8") + ] except UnicodeDecodeError as e: logger.error("Error loading file %s: %s", filename, e)