Update app.py
Browse files
app.py
CHANGED
@@ -11,13 +11,10 @@ from transformers.generation.streamers import BaseStreamer
|
|
11 |
model = MusicgenForConditionalGeneration.from_pretrained("facebook/musicgen-small")
|
12 |
processor = MusicgenProcessor.from_pretrained("facebook/musicgen-small")
|
13 |
|
14 |
-
title = "
|
15 |
-
description = """
|
16 |
-
Generate and stream music using https://huggingface.co/facebook/musicgen-small
|
17 |
-
"""
|
18 |
-
|
19 |
article = """
|
20 |
-
## How
|
21 |
MusicGen is an auto-regressive transformer-based model, meaning generates audio codes (tokens) in a causal fashion.
|
22 |
At each decoding step, the model generates a new set of audio codes, conditional on the text input and all previous audio codes. From the
|
23 |
frame rate of the [EnCodec model](https://huggingface.co/facebook/encodec_32khz) used to decode the generated codes to audio waveform.
|
|
|
11 |
model = MusicgenForConditionalGeneration.from_pretrained("facebook/musicgen-small")
|
12 |
processor = MusicgenProcessor.from_pretrained("facebook/musicgen-small")
|
13 |
|
14 |
+
title = "9🌍MusicHub - Text to Music Stream Generator"
|
15 |
+
description = """ Facebook MusicGen-Small Model - Generate and stream music with model https://huggingface.co/facebook/musicgen-small """
|
|
|
|
|
|
|
16 |
article = """
|
17 |
+
## How It Works:
|
18 |
MusicGen is an auto-regressive transformer-based model, meaning generates audio codes (tokens) in a causal fashion.
|
19 |
At each decoding step, the model generates a new set of audio codes, conditional on the text input and all previous audio codes. From the
|
20 |
frame rate of the [EnCodec model](https://huggingface.co/facebook/encodec_32khz) used to decode the generated codes to audio waveform.
|