asigalov61 commited on
Commit
3adc64e
1 Parent(s): a93a079

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -393,6 +393,7 @@ if __name__ == "__main__":
393
  app = gr.Blocks()
394
  with app:
395
  gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>MIDI Match</h1>")
 
396
  gr.Markdown("![Visitors](https://api.visitorbadge.io/api/visitors?path=asigalov61.MIDI-Match&style=flat)\n\n"
397
  "MIDI Match\n\n"
398
  "Demo for [MIDI Match](https://github.com/asigalov61)\n\n"
@@ -401,14 +402,16 @@ if __name__ == "__main__":
401
  " for faster running and longer generation"
402
  )
403
 
404
- gr.Markdown("# Upload any MIDI file to find its closest match")
405
 
406
  input_midi = gr.File(label="input midi", file_types=[".midi", ".mid"], type="binary")
 
 
407
 
408
- output_plot = gr.Plot(label="output midi match sample plot")
409
- output_audio = gr.Audio(label="output midi match sample audio", format="mp3", elem_id="midi_audio")
410
- output_midi = gr.File(label="output midi match sample file", file_types=[".mid"])
411
- output_midi_seq = gr.Textbox(label="output midi match metadata")
412
 
413
  run_event = input_midi.upload(match_midi, [input_midi],
414
  [output_midi_seq, output_midi, output_audio, output_plot])
 
393
  app = gr.Blocks()
394
  with app:
395
  gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>MIDI Match</h1>")
396
+ gr.Markdown("# Upload any MIDI file to find its closest match")
397
  gr.Markdown("![Visitors](https://api.visitorbadge.io/api/visitors?path=asigalov61.MIDI-Match&style=flat)\n\n"
398
  "MIDI Match\n\n"
399
  "Demo for [MIDI Match](https://github.com/asigalov61)\n\n"
 
402
  " for faster running and longer generation"
403
  )
404
 
405
+
406
 
407
  input_midi = gr.File(label="input midi", file_types=[".midi", ".mid"], type="binary")
408
+
409
+ gr.Markdown("# Match results")
410
 
411
+ output_plot = gr.Plot(label="Output MIDI match sample plot")
412
+ output_audio = gr.Audio(label="Output MIDI match sample audio", format="mp3", elem_id="midi_audio")
413
+ output_midi = gr.File(label="Output MIDI match sample file", file_types=[".mid"])
414
+ output_midi_seq = gr.Textbox(label="Output MIDI match metadata")
415
 
416
  run_event = input_midi.upload(match_midi, [input_midi],
417
  [output_midi_seq, output_midi, output_audio, output_plot])