asigalov61 commited on
Commit
199eaca
1 Parent(s): 65d99ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -15
app.py CHANGED
@@ -332,7 +332,7 @@ def InpaintPitches(input_midi, input_num_of_notes, input_patch_number):
332
 
333
  print('Output MIDI file name:', output_midi)
334
  print('Output MIDI title:', output_midi_title)
335
- print('Output MIDI summary:', '')
336
  print('=' * 70)
337
 
338
 
@@ -390,22 +390,22 @@ if __name__ == "__main__":
390
  [output_midi_title, output_midi_summary, output_midi, output_audio, output_plot])
391
 
392
  gr.Examples(
393
- [["Chords-Progressions-Transformer-Piano-Seed-1.mid", 128, "Chords", False],
394
- ["Chords-Progressions-Transformer-Piano-Seed-2.mid", 128, "Chords-Times", False],
395
- ["Chords-Progressions-Transformer-Piano-Seed-3.mid", 128, "Chords-Times-Durations", False],
396
- ["Chords-Progressions-Transformer-Piano-Seed-4.mid", 128, "Chords", False],
397
- ["Chords-Progressions-Transformer-Piano-Seed-5.mid", 128, "Chords-Times", False],
398
- ["Chords-Progressions-Transformer-Piano-Seed-6.mid", 128, "Chords-Times-Durations", False],
399
- ["Chords-Progressions-Transformer-MI-Seed-1.mid", 128, "Chords", False],
400
- ["Chords-Progressions-Transformer-MI-Seed-2.mid", 128, "Chords-Times", False],
401
- ["Chords-Progressions-Transformer-MI-Seed-3.mid", 128, "Chords-Times-Durations", False],
402
- ["Chords-Progressions-Transformer-MI-Seed-4.mid", 128, "Chords-Times", False],
403
- ["Chords-Progressions-Transformer-MI-Seed-5.mid", 128, "Chords", False],
404
- ["Chords-Progressions-Transformer-MI-Seed-6.mid", 128, "Chords-Times-Durations", False]
405
  ],
406
- [input_midi, input_num_tokens, input_conditioning_type, input_strip_notes],
407
  [output_midi_title, output_midi_summary, output_midi, output_audio, output_plot],
408
- GenerateAccompaniment,
409
  cache_examples=True,
410
  )
411
 
 
332
 
333
  print('Output MIDI file name:', output_midi)
334
  print('Output MIDI title:', output_midi_title)
335
+ print('Output MIDI summary:', output_midi_summary)
336
  print('=' * 70)
337
 
338
 
 
390
  [output_midi_title, output_midi_summary, output_midi, output_audio, output_plot])
391
 
392
  gr.Examples(
393
+ [["Giant-Music-Transformer-Piano-Seed-1.mid", 128, 0],
394
+ ["Giant-Music-Transformer-Piano-Seed-2.mid", 128, 0],
395
+ ["Giant-Music-Transformer-Piano-Seed-3.mid", 128, 0],
396
+ ["Giant-Music-Transformer-Piano-Seed-4.mid", 128, 0],
397
+ ["Giant-Music-Transformer-Piano-Seed-5.mid", 128, 0],
398
+ ["Giant-Music-Transformer-Piano-Seed-6.mid", 128, 0],
399
+ ["Giant-Music-Transformer-MI-Seed-1.mid", 128, "Chords", False],
400
+ ["Giant-Music-Transformer-MI-Seed-2.mid", 128, "Chords-Times", False],
401
+ ["Giant-Music-Transformer-MI-Seed-3.mid", 128, "Chords-Times-Durations", False],
402
+ ["Giant-Music-Transformer-MI-Seed-4.mid", 128, "Chords-Times", False],
403
+ ["Giant-Music-Transformer-MI-Seed-5.mid", 128, "Chords", False],
404
+ ["Giant-Music-Transformer-MI-Seed-6.mid", 128, "Chords-Times-Durations", False]
405
  ],
406
+ [input_midi, input_num_of_notes, input_patch_number],
407
  [output_midi_title, output_midi_summary, output_midi, output_audio, output_plot],
408
+ InpaintPitches,
409
  cache_examples=True,
410
  )
411