Spaces:
Runtime error
Runtime error
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(
|
51 |
-
name = Path(
|
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=['
|
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()
|