Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -72,8 +72,8 @@ for repo_id in repo_ids:
|
|
72 |
speakers = list(hparams.spk.keys())
|
73 |
speakers.extend(speakers)
|
74 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
75 |
-
|
76 |
-
models.append(
|
77 |
|
78 |
# Reset ckpt_name and cluster_model_name for the next iteration
|
79 |
ckpt_name = None
|
|
|
72 |
speakers = list(hparams.spk.keys())
|
73 |
speakers.extend(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)
|
77 |
|
78 |
# Reset ckpt_name and cluster_model_name for the next iteration
|
79 |
ckpt_name = None
|