Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
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.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)
|