Fix error in index file path (#1502)
This commit is contained in:
parent
2b0971e917
commit
3f7644b56a
@ -169,18 +169,17 @@ class VC:
|
|||||||
if self.hubert_model is None:
|
if self.hubert_model is None:
|
||||||
self.hubert_model = load_hubert(self.config)
|
self.hubert_model = load_hubert(self.config)
|
||||||
|
|
||||||
file_index = (
|
if file_index:
|
||||||
(
|
file_index = file_index.strip(" ") \
|
||||||
file_index.strip(" ")
|
.strip('"') \
|
||||||
.strip('"')
|
.strip("\n") \
|
||||||
.strip("\n")
|
.strip('"') \
|
||||||
.strip('"')
|
.strip(" ") \
|
||||||
.strip(" ")
|
.replace("trained", "added")
|
||||||
.replace("trained", "added")
|
elif file_index2:
|
||||||
)
|
file_index = file_index2
|
||||||
if file_index != ""
|
else:
|
||||||
else file_index2
|
file_index = "" # 防止小白写错,自动帮他替换掉
|
||||||
) # 防止小白写错,自动帮他替换掉
|
|
||||||
|
|
||||||
audio_opt = self.pipeline.pipeline(
|
audio_opt = self.pipeline.pipeline(
|
||||||
self.hubert_model,
|
self.hubert_model,
|
||||||
|
Loading…
Reference in New Issue
Block a user