mrfakename commited on
Commit
512e5d8
·
verified ·
1 Parent(s): 8fd614f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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")