Spaces:
Running
Running
asigalov61
commited on
Commit
•
58881e0
1
Parent(s):
c04453c
Update app.py
Browse files
app.py
CHANGED
@@ -15,15 +15,12 @@ in_space = os.getenv("SYSTEM") == "spaces"
|
|
15 |
|
16 |
def run(search_prompt, mid=None, progress=gr.Progress()):
|
17 |
|
18 |
-
|
19 |
if mid == None:
|
20 |
-
|
21 |
for m in progress.tqdm(meta_data):
|
22 |
-
mid_seq = []
|
23 |
-
mid_seq.extend(m[1][17:])
|
24 |
mid_seq_ticks = m[1][16][1]
|
25 |
mdata = m[1][:17]
|
26 |
-
# break
|
27 |
|
28 |
elif mid is not None:
|
29 |
mid_seq = MIDI.midi2score(mid)
|
|
|
15 |
|
16 |
def run(search_prompt, mid=None, progress=gr.Progress()):
|
17 |
|
|
|
18 |
if mid == None:
|
19 |
+
|
20 |
for m in progress.tqdm(meta_data):
|
21 |
+
mid_seq = m[1][17:-1]
|
|
|
22 |
mid_seq_ticks = m[1][16][1]
|
23 |
mdata = m[1][:17]
|
|
|
24 |
|
25 |
elif mid is not None:
|
26 |
mid_seq = MIDI.midi2score(mid)
|