mirror of
https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-06-06 01:30:24 +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:
committed by
GitHub
parent
09285d5f5b
commit
d44a942882
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user