fix path error

delete useless line wraps
This commit is contained in:
XXXXRT666 2024-04-26 02:27:58 +01:00
parent 707f6db43e
commit ec484fa061
2 changed files with 2 additions and 4 deletions

4
.gitignore vendored
View File

@ -9,6 +9,4 @@ logs
reference
GPT_weights
SoVITS_weights
TEMP
TEMP

View File

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