Make lint

This commit is contained in:
Eren G??lge 2023-06-21 12:05:08 +02:00
parent 3b9fca2398
commit cf98ae04df
1 changed files with 7 additions and 7 deletions

View File

@ -33,7 +33,7 @@ def _normalize_whitespace(text):
return re.sub(r"\s+", " ", text).strip()
def get_voices(extra_voice_dirs: List[str] = []):
def get_voices(extra_voice_dirs: List[str] = []): # pylint: disable=dangerous-default-value
dirs = extra_voice_dirs
voices: Dict[str, List[str]] = {}
for d in dirs:
@ -74,7 +74,7 @@ def load_voice(model, voice: str, extra_voice_dirs: List[str] = []): # pylint:
if len(paths) == 1 and paths[0].endswith(".npz"):
return load_npz(path[0])
else:
audio_path = paths[0]
# replace the file extension with .npz
output_path = os.path.splitext(audio_path)[0] + ".npz"