jayparmr commited on
Commit
78ce783
·
1 Parent(s): e9363c3

Update Retrieval-based-Voice-Conversion-WebUI/infer-web.py

Browse files
Retrieval-based-Voice-Conversion-WebUI/infer-web.py CHANGED
@@ -150,17 +150,19 @@ def change_choices():
150
  for name in os.listdir(weight_root):
151
  if name.endswith(".pth"):
152
  names.append(name)
 
 
153
  index_paths = []
154
  for root, dirs, files in os.walk(index_root, topdown=False):
155
  for name in files:
156
  if name.endswith(".index") and "trained" not in name:
157
  index_paths.append("%s/%s" % (root, name))
 
158
  return {"choices": sorted(names), "__type__": "update"}, {
159
  "choices": sorted(index_paths),
160
  "__type__": "update",
161
  }
162
-
163
-
164
  def clean():
165
  return {"value": "", "__type__": "update"}
166
 
 
150
  for name in os.listdir(weight_root):
151
  if name.endswith(".pth"):
152
  names.append(name)
153
+ print("weight_root :",weight_root)
154
+ print("names : ",names)
155
  index_paths = []
156
  for root, dirs, files in os.walk(index_root, topdown=False):
157
  for name in files:
158
  if name.endswith(".index") and "trained" not in name:
159
  index_paths.append("%s/%s" % (root, name))
160
+
161
  return {"choices": sorted(names), "__type__": "update"}, {
162
  "choices": sorted(index_paths),
163
  "__type__": "update",
164
  }
165
+
 
166
  def clean():
167
  return {"value": "", "__type__": "update"}
168