reach-vb HF staff commited on
Commit
b178bb3
1 Parent(s): af3486e

Update README.md (#3)

Browse files

- Update README.md (5d30a9e60b23ec27bb818e33a907ddbc3bd36cab)

Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -70,7 +70,7 @@ pip install --upgrade transformers scipy
70
  from transformers import pipeline
71
  import scipy
72
 
73
- synthesiser = pipeline("text-to-audio", "facebook/musicgen-large")
74
 
75
  music = synthesiser("lo-fi music with a soothing melody", forward_params={"do_sample": True})
76
 
@@ -82,8 +82,8 @@ scipy.io.wavfile.write("musicgen_out.wav", rate=music["sampling_rate"], music=au
82
  ```python
83
  from transformers import AutoProcessor, MusicgenForConditionalGeneration
84
 
85
- processor = AutoProcessor.from_pretrained("facebook/musicgen-large")
86
- model = MusicgenForConditionalGeneration.from_pretrained("facebook/musicgen-large")
87
 
88
  inputs = processor(
89
  text=["80s pop track with bassy drums and synth", "90s rock song with loud guitars and heavy drums"],
 
70
  from transformers import pipeline
71
  import scipy
72
 
73
+ synthesiser = pipeline("text-to-audio", "facebook/musicgen-stereo-large")
74
 
75
  music = synthesiser("lo-fi music with a soothing melody", forward_params={"do_sample": True})
76
 
 
82
  ```python
83
  from transformers import AutoProcessor, MusicgenForConditionalGeneration
84
 
85
+ processor = AutoProcessor.from_pretrained("facebook/musicgen-stereo-large")
86
+ model = MusicgenForConditionalGeneration.from_pretrained("facebook/musicgen-stereo-large")
87
 
88
  inputs = processor(
89
  text=["80s pop track with bassy drums and synth", "90s rock song with loud guitars and heavy drums"],