Mahiruoshi commited on
Commit
cd6f834
1 Parent(s): 83a8c16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -346,9 +346,9 @@ if __name__ == "__main__":
346
  for dirpath, dirnames, filenames in os.walk('Data/BangDream/models/'):
347
  for filename in filenames:
348
  modelPaths.append(os.path.join(dirpath, filename))
349
- hps = utils.get_hparams_from_file('Data/BangDream/configs/config.json')
350
  net_g = get_net_g(
351
- model_path="Data/BangDream/models/G_1536000.pth", device=device, hps=hps
352
  )
353
  speaker_ids = hps.data.spk2id
354
  speakers = list(speaker_ids.keys())
 
346
  for dirpath, dirnames, filenames in os.walk('Data/BangDream/models/'):
347
  for filename in filenames:
348
  modelPaths.append(os.path.join(dirpath, filename))
349
+ hps = utils.get_hparams_from_file('Data/Chinese/configs/config.json')
350
  net_g = get_net_g(
351
+ model_path="Data/Chinese/models/G_80000.pth", device=device, hps=hps
352
  )
353
  speaker_ids = hps.data.spk2id
354
  speakers = list(speaker_ids.keys())