Commit
•
389bbdc
1
Parent(s):
3b776a7
Update README.md (#2)
Browse files- Update README.md (03851498cf578b1c5d4cedbf36732055e77d2d81)
Co-authored-by: Santiago Gil <santiago-gil-gdf@users.noreply.huggingface.co>
README.md
CHANGED
@@ -35,8 +35,7 @@ from audiocraft.models import AudioGen
|
|
35 |
from audiocraft.data.audio import audio_write
|
36 |
|
37 |
model = AudioGen.get_pretrained('facebook/audiogen-medium')
|
38 |
-
model.set_generation_params(duration=5) # generate
|
39 |
-
wav = model.generate_unconditional(4) # generates 4 unconditional audio samples
|
40 |
descriptions = ['dog barking', 'sirenes of an emergency vehicule', 'footsteps in a corridor']
|
41 |
wav = model.generate(descriptions) # generates 3 samples.
|
42 |
|
|
|
35 |
from audiocraft.data.audio import audio_write
|
36 |
|
37 |
model = AudioGen.get_pretrained('facebook/audiogen-medium')
|
38 |
+
model.set_generation_params(duration=5) # generate 5 seconds.
|
|
|
39 |
descriptions = ['dog barking', 'sirenes of an emergency vehicule', 'footsteps in a corridor']
|
40 |
wav = model.generate(descriptions) # generates 3 samples.
|
41 |
|