asigalov61 commited on
Commit
d34be48
1 Parent(s): 9b994b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -427,11 +427,11 @@ if __name__ == "__main__":
427
 
428
  gr.Markdown("## Select generation type")
429
 
430
- input_gen_type = gr.Radio(["Controlled", "Freestyle"], label="Generation type")
431
 
432
  gr.Markdown("## Controlled generation options")
433
 
434
- input_number_prime_chords = gr.Slider(0, 512, value=128, step=8, label="Number of prime chords")
435
  input_number_gen_chords = gr.Slider(16, 512, value=256, step=8, label="Number of chords to generate")
436
  input_use_original_durations = gr.Checkbox(label="Use original durations", value=True)
437
  input_match_original_pitches_counts = gr.Checkbox(label="Match original pitches counts", value=True)
@@ -472,7 +472,8 @@ if __name__ == "__main__":
472
  [output_midi_title, output_midi_summary, output_midi, output_audio, output_plot])
473
 
474
  gr.Examples(
475
- [["Come To My Window.mid", "Controlled", 128, 256, False, False, 512, 1024, 2048, 0.9, 10],
 
476
  ["Sharing The Night Together.kar", "Controlled", 128, 256, True, True, 512, 1024, 2048, 0.9, 10],
477
  ["Hotel California.mid", "Controlled", 128, 256, True, True, 512, 1024, 2048, 0.9, 10],
478
  ["Nothing Else Matters.kar", "Controlled", 128, 256, True, True, 512, 1024, 2048, 0.9, 10],
 
427
 
428
  gr.Markdown("## Select generation type")
429
 
430
+ input_gen_type = gr.Radio(["Controlled", "Freestyle"], value='Controlled', label="Generation type")
431
 
432
  gr.Markdown("## Controlled generation options")
433
 
434
+ input_number_prime_chords = gr.Slider(0, 512, value=0, step=8, label="Number of prime chords")
435
  input_number_gen_chords = gr.Slider(16, 512, value=256, step=8, label="Number of chords to generate")
436
  input_use_original_durations = gr.Checkbox(label="Use original durations", value=True)
437
  input_match_original_pitches_counts = gr.Checkbox(label="Match original pitches counts", value=True)
 
472
  [output_midi_title, output_midi_summary, output_midi, output_audio, output_plot])
473
 
474
  gr.Examples(
475
+ [["Rock Violin.mid", "Controlled", 0, 512, True, True, 512, 1024, 2048, 0.9, 10],
476
+ ["Come To My Window.mid", "Controlled", 128, 256, False, False, 512, 1024, 2048, 0.9, 10],
477
  ["Sharing The Night Together.kar", "Controlled", 128, 256, True, True, 512, 1024, 2048, 0.9, 10],
478
  ["Hotel California.mid", "Controlled", 128, 256, True, True, 512, 1024, 2048, 0.9, 10],
479
  ["Nothing Else Matters.kar", "Controlled", 128, 256, True, True, 512, 1024, 2048, 0.9, 10],