sanchit-gandhi HF staff commited on
Commit
f52cf36
1 Parent(s): c022201

Update Code Snippet (#4)

Browse files

- Update Code Snippet (574a689b8f2153ea1bccda9d7f522e98f45fcb2a)

Files changed (1) hide show
  1. README.md +5 -1
README.md CHANGED
@@ -20,6 +20,10 @@ widget:
20
  - Trained on [CSS10](https://github.com/Kyubyong/css10)
21
 
22
  ## Usage
 
 
 
 
23
 
24
  ```python
25
  from fairseq.checkpoint_utils import load_model_ensemble_and_task_from_hf_hub
@@ -33,7 +37,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(model, cfg)
37
 
38
  text = "Hola, esta es una prueba."
39
 
20
  - Trained on [CSS10](https://github.com/Kyubyong/css10)
21
 
22
  ## Usage
23
+ Dependencies
24
+ ```sh
25
+ pip install fairseq sentencepiece
26
+ ```
27
 
28
  ```python
29
  from fairseq.checkpoint_utils import load_model_ensemble_and_task_from_hf_hub
37
  )
38
  model = models[0]
39
  TTSHubInterface.update_cfg_with_data_cfg(cfg, task.data_cfg)
40
+ generator = task.build_generator([model], cfg)
41
 
42
  text = "Hola, esta es una prueba."
43