1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-05 09:10:25 +08:00

chore(format): run black on dev (#45)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2024-06-12 23:30:50 +09:00
committed by GitHub
parent 09285d5f5b
commit d44a942882

View File

@@ -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)