asigalov61 commited on
Commit
f7587a6
1 Parent(s): e863cb3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -151,8 +151,8 @@ def GenerateMIDI(num_tok, idrums, iinstr, progress=gr.Progress()):
151
  y.append(s[4])
152
  c.append(colors[s[3]])
153
 
154
- fig = plt.figure(figsize=(14,5))
155
- midi_plot = fig.axes(title='Allegro Music Transformer Composition')
156
  midi_plot = ax.set_facecolor('black')
157
  plt.scatter(x,y, c=c)
158
  plt.xlabel("Time")
 
151
  y.append(s[4])
152
  c.append(colors[s[3]])
153
 
154
+ midi_plot = plt.figure(figsize=(14,5))
155
+ midi_plot = plt.axes(title='Allegro Music Transformer Composition')
156
  midi_plot = ax.set_facecolor('black')
157
  plt.scatter(x,y, c=c)
158
  plt.xlabel("Time")