From ec484fa061f4084da5a736c7997b169201f05b4a Mon Sep 17 00:00:00 2001 From: XXXXRT666 Date: Fri, 26 Apr 2024 02:27:58 +0100 Subject: [PATCH] fix path error delete useless line wraps --- .gitignore | 4 +--- tools/my_utils.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 96e754a9..c484cf22 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,4 @@ logs reference GPT_weights SoVITS_weights -TEMP - - +TEMP \ No newline at end of file diff --git a/tools/my_utils.py b/tools/my_utils.py index a7755d6d..de79f3b5 100644 --- a/tools/my_utils.py +++ b/tools/my_utils.py @@ -28,4 +28,4 @@ def load_audio(file, sr): def clean_path(path_str): if platform.system() == 'Windows': path_str = path_str.replace('/', '\\') - return path_str.strip(" ").strip('"').strip("\n").strip('"').strip(" ") + return path_str.strip(" ").strip('"').strip("\n").strip('"').strip(" ").strip("\u202a")