asigalov61 commited on
Commit
7a88549
1 Parent(s): 4b3e8cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def run(search_prompt, mid=None, progress=gr.Progress()):
40
  y.append(s[4])
41
  c.append(colors[s[3]])
42
 
43
- plot = [x, y, c]
44
 
45
  with open(f"output.mid", 'wb') as f:
46
  f.write(MIDI.score2midi([mid_seq_ticks, mid_seq]))
 
40
  y.append(s[4])
41
  c.append(colors[s[3]])
42
 
43
+ plot = gr.ScatterPlot(x=x, y=y, color=c)
44
 
45
  with open(f"output.mid", 'wb') as f:
46
  f.write(MIDI.score2midi([mid_seq_ticks, mid_seq]))