Spaces:
Running
on
Zero
Running
on
Zero
mrfakename
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ with gr.Blocks() as demo:
|
|
36 |
piano_seed = gr.Checkbox(label="Use Piano Melody Seed")
|
37 |
length = gr.Slider(label="Max Length (in tokens)", minimum=4, maximum=4096, step=1, value=512, info="The audio may still be shorter than this")
|
38 |
longer = gr.Checkbox(label="Enable longer generation", info="This will increase the maximum value of the maximum length slider to 8192 even though the model context length is not this long. Results may be substandard and you may get errors.")
|
39 |
-
longer.input(enable_longer, inputs=longer, outputs=length)
|
40 |
synth = gr.Button("Synthesize")
|
41 |
txtout = gr.Textbox(interactive=False, label="MIDI Tokens")
|
42 |
fileout = gr.File(interactive=False, label="MIDI File", type="binary")
|
|
|
36 |
piano_seed = gr.Checkbox(label="Use Piano Melody Seed")
|
37 |
length = gr.Slider(label="Max Length (in tokens)", minimum=4, maximum=4096, step=1, value=512, info="The audio may still be shorter than this")
|
38 |
longer = gr.Checkbox(label="Enable longer generation", info="This will increase the maximum value of the maximum length slider to 8192 even though the model context length is not this long. Results may be substandard and you may get errors.")
|
39 |
+
longer.input(enable_longer, inputs=[longer, length], outputs=length)
|
40 |
synth = gr.Button("Synthesize")
|
41 |
txtout = gr.Textbox(interactive=False, label="MIDI Tokens")
|
42 |
fileout = gr.File(interactive=False, label="MIDI File", type="binary")
|