Fixed error that caused: TypeError: 'FastSpeech2Model' object is not subscriptable
Browse files
README.md
CHANGED
@@ -33,7 +33,7 @@ models, cfg, task = load_model_ensemble_and_task_from_hf_hub(
|
|
33 |
)
|
34 |
model = models[0]
|
35 |
TTSHubInterface.update_cfg_with_data_cfg(cfg, task.data_cfg)
|
36 |
-
generator = task.build_generator(
|
37 |
|
38 |
text = "Hello, this is a test run."
|
39 |
|
|
|
33 |
)
|
34 |
model = models[0]
|
35 |
TTSHubInterface.update_cfg_with_data_cfg(cfg, task.data_cfg)
|
36 |
+
generator = task.build_generator(models, cfg)
|
37 |
|
38 |
text = "Hello, this is a test run."
|
39 |
|