divyareddy commited on
Commit
3fd0713
·
verified ·
1 Parent(s): c60d7d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -11,7 +11,14 @@ from transformers.generation.streamers import BaseStreamer
11
  model = MusicgenForConditionalGeneration.from_pretrained("facebook/musicgen-small")
12
  processor = MusicgenProcessor.from_pretrained("facebook/musicgen-small")
13
 
14
-
 
 
 
 
 
 
 
15
 
16
  class MusicgenStreamer(BaseStreamer):
17
  def __init__(
 
11
  model = MusicgenForConditionalGeneration.from_pretrained("facebook/musicgen-small")
12
  processor = MusicgenProcessor.from_pretrained("facebook/musicgen-small")
13
 
14
+ title = "MusicHub - Text to Music Stream Generator"
15
+ description = """ MusicGen-Small Model - Generate and stream music with model """
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 used to decode the generated codes to audio waveform.
21
+ """
22
 
23
  class MusicgenStreamer(BaseStreamer):
24
  def __init__(