Spaces:
Running
on
Zero
Running
on
Zero
mrfakename
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def gen(piano_only, length):
|
|
20 |
with gr.Blocks() as demo:
|
21 |
gr.Markdown("# RWKV 4 Music (MIDI)\n\nThis demo uses the RWKV 4 MIDI model available [here](https://huggingface.co/BlinkDL/rwkv-4-music/blob/main/RWKV-4-MIDI-560M-v1-20230717-ctx4096.pth). Details may be found [here](https://huggingface.co/BlinkDL/rwkv-4-music). The music generation code may be found [here](https://github.com/BlinkDL/ChatRWKV/tree/main/music). The MIDI Tokenizer may be found [here](https://github.com/briansemrau/MIDI-LLM-tokenizer).\n\nNot sure how to play MIDI files? I recommend using the open source [VLC Media Player](https://www.videolan.org/vlc/) with can play MIDI files using FluidSynth.")
|
22 |
piano_only = gr.Checkbox(label="Piano Only")
|
23 |
-
length = gr.Slider(label="Length (in tokens)", minimum=4, maximum=4096, step=1, value=4096)
|
24 |
synth = gr.Button("Synthesize")
|
25 |
txtout = gr.Textbox(interactive=False, label="MIDI Tokens")
|
26 |
fileout = gr.File(interactive=False, label="MIDI File", type="binary")
|
|
|
20 |
with gr.Blocks() as demo:
|
21 |
gr.Markdown("# RWKV 4 Music (MIDI)\n\nThis demo uses the RWKV 4 MIDI model available [here](https://huggingface.co/BlinkDL/rwkv-4-music/blob/main/RWKV-4-MIDI-560M-v1-20230717-ctx4096.pth). Details may be found [here](https://huggingface.co/BlinkDL/rwkv-4-music). The music generation code may be found [here](https://github.com/BlinkDL/ChatRWKV/tree/main/music). The MIDI Tokenizer may be found [here](https://github.com/briansemrau/MIDI-LLM-tokenizer).\n\nNot sure how to play MIDI files? I recommend using the open source [VLC Media Player](https://www.videolan.org/vlc/) with can play MIDI files using FluidSynth.")
|
22 |
piano_only = gr.Checkbox(label="Piano Only")
|
23 |
+
length = gr.Slider(label="Max Length (in tokens)", minimum=4, maximum=4096, step=1, value=4096, info="The audio may still be shorter than this")
|
24 |
synth = gr.Button("Synthesize")
|
25 |
txtout = gr.Textbox(interactive=False, label="MIDI Tokens")
|
26 |
fileout = gr.File(interactive=False, label="MIDI File", type="binary")
|