Spaces:
Running
Running
asigalov61
commited on
Commit
•
38457ff
1
Parent(s):
06d58f4
Update app.py
Browse files
app.py
CHANGED
@@ -23,6 +23,7 @@ def run(search_prompt, mid=None, progress=gr.Progress()):
|
|
23 |
mid_seq = m[1][17:-1]
|
24 |
mid_seq_ticks = m[1][16][1]
|
25 |
mdata = m[1][:16]
|
|
|
26 |
|
27 |
elif mid is not None:
|
28 |
mid_seq = MIDI.midi2score(mid)
|
@@ -44,7 +45,7 @@ def run(search_prompt, mid=None, progress=gr.Progress()):
|
|
44 |
|
45 |
plt.close()
|
46 |
plt.figure(figsize=(14,5))
|
47 |
-
ax=plt.axes(title='
|
48 |
ax.set_facecolor('black')
|
49 |
|
50 |
plt.scatter(x,y, c=c)
|
|
|
23 |
mid_seq = m[1][17:-1]
|
24 |
mid_seq_ticks = m[1][16][1]
|
25 |
mdata = m[1][:16]
|
26 |
+
break
|
27 |
|
28 |
elif mid is not None:
|
29 |
mid_seq = MIDI.midi2score(mid)
|
|
|
45 |
|
46 |
plt.close()
|
47 |
plt.figure(figsize=(14,5))
|
48 |
+
ax=plt.axes(title='MIDI Search Plot')
|
49 |
ax.set_facecolor('black')
|
50 |
|
51 |
plt.scatter(x,y, c=c)
|