reach-vb HF staff commited on
Commit
f40873e
1 Parent(s): 700621a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -78,7 +78,7 @@ pip install --upgrade transformers scipy
78
  from transformers import pipeline
79
  import scipy
80
 
81
- synthesiser = pipeline("text-to-audio", "facebook/musicgen-small")
82
 
83
  music = synthesiser("lo-fi music with a soothing melody", forward_params={"do_sample": True})
84
 
@@ -90,8 +90,8 @@ scipy.io.wavfile.write("musicgen_out.wav", rate=music["sampling_rate"], music=au
90
  ```python
91
  from transformers import AutoProcessor, MusicgenForConditionalGeneration
92
 
93
- processor = AutoProcessor.from_pretrained("facebook/musicgen-small")
94
- model = MusicgenForConditionalGeneration.from_pretrained("facebook/musicgen-small")
95
 
96
  inputs = processor(
97
  text=["80s pop track with bassy drums and synth", "90s rock song with loud guitars and heavy drums"],
 
78
  from transformers import pipeline
79
  import scipy
80
 
81
+ synthesiser = pipeline("text-to-audio", "facebook/musicgen-stereo-small")
82
 
83
  music = synthesiser("lo-fi music with a soothing melody", forward_params={"do_sample": True})
84
 
 
90
  ```python
91
  from transformers import AutoProcessor, MusicgenForConditionalGeneration
92
 
93
+ processor = AutoProcessor.from_pretrained("facebook/musicgen-stereo-small")
94
+ model = MusicgenForConditionalGeneration.from_pretrained("facebook/musicgen-stereo-small")
95
 
96
  inputs = processor(
97
  text=["80s pop track with bassy drums and synth", "90s rock song with loud guitars and heavy drums"],