asigalov61 commited on
Commit
e0f9974
1 Parent(s): 0f79926

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -377,7 +377,7 @@ if __name__ == "__main__":
377
 
378
  input_midi = gr.File(label="Input MIDI", file_types=[".midi", ".mid", ".kar"])
379
  input_num_tokens = gr.Slider(4, 128, value=32, step=1, label="Number of composition chords to generate progression for")
380
- input_conditioning_type = gr.Radio(["Chords", "Chords-Times", "Chords-Times-Durations"], label="Conditioning type")
381
  input_strip_notes = gr.Checkbox(label="Strip notes from the composition")
382
 
383
  run_btn = gr.Button("generate", variant="primary")
@@ -390,7 +390,6 @@ if __name__ == "__main__":
390
  output_plot = gr.Plot(label="Output MIDI score plot")
391
  output_midi = gr.File(label="Output MIDI file", file_types=[".mid"])
392
 
393
-
394
  run_event = run_btn.click(GenerateAccompaniment, [input_midi, input_num_tokens, input_conditioning_type, input_strip_notes],
395
  [output_midi_title, output_midi_summary, output_midi, output_audio, output_plot])
396
 
 
377
 
378
  input_midi = gr.File(label="Input MIDI", file_types=[".midi", ".mid", ".kar"])
379
  input_num_tokens = gr.Slider(4, 128, value=32, step=1, label="Number of composition chords to generate progression for")
380
+ input_conditioning_type = gr.Radio(["Chords", "Chords-Times", "Chords-Times-Durations"], value="Chords", label="Conditioning type")
381
  input_strip_notes = gr.Checkbox(label="Strip notes from the composition")
382
 
383
  run_btn = gr.Button("generate", variant="primary")
 
390
  output_plot = gr.Plot(label="Output MIDI score plot")
391
  output_midi = gr.File(label="Output MIDI file", file_types=[".mid"])
392
 
 
393
  run_event = run_btn.click(GenerateAccompaniment, [input_midi, input_num_tokens, input_conditioning_type, input_strip_notes],
394
  [output_midi_title, output_midi_summary, output_midi, output_audio, output_plot])
395