nijisakai commited on
Commit
5af0d0e
1 Parent(s): 608bb92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -70,7 +70,7 @@ for repo_id in repo_ids:
70
  config_path = hf_hub_download(repo_id, "config.json")
71
  hparams = HParams(**json.loads(Path(config_path).read_text()))
72
  speaker = list(hparams.spk.keys())
73
- speakers.extend(speaker)
74
  device = "cuda" if torch.cuda.is_available() else "cpu"
75
  model = Svc(net_g_path=generator_path, config_path=config_path, device=device, cluster_model_path=cluster_model_path)
76
  models.append(model)
 
70
  config_path = hf_hub_download(repo_id, "config.json")
71
  hparams = HParams(**json.loads(Path(config_path).read_text()))
72
  speaker = list(hparams.spk.keys())
73
+ speakers.append(speaker)
74
  device = "cuda" if torch.cuda.is_available() else "cpu"
75
  model = Svc(net_g_path=generator_path, config_path=config_path, device=device, cluster_model_path=cluster_model_path)
76
  models.append(model)