Skip to content

Commit 11dccf8

Browse files
committed
fix names
1 parent 8dc195b commit 11dccf8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

infer-web.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def load_hubert():
6464
weight_uvr5_root="uvr5_weights"
6565
names=[]
6666
for name in os.listdir(weight_root):
67-
if name.endswith(".pt"): names.append(name)
67+
if name.endswith(".pth"): names.append(name)
6868
uvr5_names=[]
6969
for name in os.listdir(weight_uvr5_root):
7070
if name.endswith(".pth"): uvr5_names.append(name.replace(".pth",""))
@@ -183,8 +183,8 @@ def get_vc(sid):
183183

184184
def change_choices():
185185
for name in os.listdir(weight_root):
186-
if name.endswith(".pt"): names.append(name)
187-
return {"choices": sorted(name), "__type__": "update"}
186+
if name.endswith(".pth"): names.append(name)
187+
return {"choices": sorted(names), "__type__": "update"}
188188
def clean():return {"value": "", "__type__": "update"}
189189
def change_f0(if_f0_3,sr2):#np7, f0method8,pretrained_G14,pretrained_D15
190190
if(if_f0_3=="是"):return {"visible": True, "__type__": "update"},{"visible": True, "__type__": "update"},"pretrained/f0G%s.pth"%sr2,"pretrained/f0D%s.pth"%sr2

0 commit comments

Comments
 (0)