Update README.md
Browse files
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-medium")
|
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-medium")
|
94 |
-
model = MusicgenForConditionalGeneration.from_pretrained("facebook/musicgen-medium")
|
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-medium")
|
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-medium")
|
94 |
+
model = MusicgenForConditionalGeneration.from_pretrained("facebook/musicgen-stereo-medium")
|
95 |
|
96 |
inputs = processor(
|
97 |
text=["80s pop track with bassy drums and synth", "90s rock song with loud guitars and heavy drums"],
|