psistolar commited on
Commit
249bbc0
1 Parent(s): a099098

Remove containing folder to clean up interface for examples.

Browse files
example-midi/C Major Scale.midi → C Major Scale.midi RENAMED
File without changes
app.py CHANGED
@@ -47,8 +47,8 @@ print("Ready to use.")
47
 
48
 
49
 
50
- def process_midi(midi_file):
51
- name = Path(midi_file.name)
52
 
53
  # create the model input object
54
  item = MusicItem.from_file(name, data.vocab)
@@ -74,7 +74,7 @@ iface = gr.Interface(
74
  fn=process_midi,
75
  inputs=["file"],
76
  outputs="audio",
77
- examples=['example-midi/C major scale.midi']
78
  )
79
 
80
  iface.launch()
 
47
 
48
 
49
 
50
+ def process_midi(MIDI_File):
51
+ name = Path(MIDI_File.name)
52
 
53
  # create the model input object
54
  item = MusicItem.from_file(name, data.vocab)
 
74
  fn=process_midi,
75
  inputs=["file"],
76
  outputs="audio",
77
+ examples=['C major scale.midi']
78
  )
79
 
80
  iface.launch()