kevinwang676 commited on
Commit
7b3c93d
·
1 Parent(s): 3c90005

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -230,10 +230,10 @@ preload_models()
230
  # Collect all existing speakers/voices in dir
231
  speakers_list = []
232
 
233
- for root, dirs, files in os.walk("./bark/assets/prompts"):
234
  for file in files:
235
  if(file.endswith(".npz")):
236
- pathpart = root.replace("./bark/assets/prompts", "")
237
  if len(pathpart) < 1:
238
  pathpart = "/"
239
  speakers_list.append(os.path.join(pathpart, file[:-4]))
 
230
  # Collect all existing speakers/voices in dir
231
  speakers_list = []
232
 
233
+ for root, dirs, files in os.walk("./bark/assets/prompts/v2"):
234
  for file in files:
235
  if(file.endswith(".npz")):
236
+ pathpart = root.replace("./bark/assets/prompts/v2", "")
237
  if len(pathpart) < 1:
238
  pathpart = "/"
239
  speakers_list.append(os.path.join(pathpart, file[:-4]))