add colab

This commit is contained in:
源文雨
2023-04-01 19:58:33 +08:00
parent 11dccf840f
commit 10b74d70a5
3 changed files with 214 additions and 0 deletions

View File

@@ -182,6 +182,7 @@ def get_vc(sid):
return {"visible": True,"maximum": n_spk, "__type__": "update"}
def change_choices():
names=[]
for name in os.listdir(weight_root):
if name.endswith(".pth"): names.append(name)
return {"choices": sorted(names), "__type__": "update"}