Fix error in index file path (#1502)

This commit is contained in:
CNajm 2023-11-05 22:41:25 -08:00 committed by GitHub
parent 2b0971e917
commit 3f7644b56a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,18 +169,17 @@ class VC:
if self.hubert_model is None:
self.hubert_model = load_hubert(self.config)
file_index = (
(
file_index.strip(" ")
.strip('"')
.strip("\n")
.strip('"')
.strip(" ")
.replace("trained", "added")
)
if file_index != ""
else file_index2
) # 防止小白写错,自动帮他替换掉
if file_index:
file_index = file_index.strip(" ") \
.strip('"') \
.strip("\n") \
.strip('"') \
.strip(" ") \
.replace("trained", "added")
elif file_index2:
file_index = file_index2
else:
file_index = "" # 防止小白写错,自动帮他替换掉
audio_opt = self.pipeline.pipeline(
self.hubert_model,