asigalov61 commited on
Commit
dbe3ea6
1 Parent(s): 2bc2b1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -152,11 +152,11 @@ def GenerateMIDI(num_tok, idrums, iinstr, progress=gr.Progress()):
152
  c.append(colors[s[3]])
153
 
154
  midi_plot = plt.figure(figsize=(14,5))
155
- midi_plot.axes(title='Allegro Music Transformer Composition')
156
- midi_plot.set_facecolor('black')
157
- midi_plot.scatter(x,y, c=c)
158
- midi_plot.xlabel("Time")
159
- midi_plot.ylabel("Pitch")
160
  plt.close()
161
 
162
  yield [500, output1], midi_plot, "Allegro-Music-Transformer-Music-Composition.mid", (44100, audio)
 
152
  c.append(colors[s[3]])
153
 
154
  midi_plot = plt.figure(figsize=(14,5))
155
+ plt.axes(title='Allegro Music Transformer Composition')
156
+ plt.axes.set_facecolor('black')
157
+ plt.scatter(x,y, c=c)
158
+ plt.xlabel("Time")
159
+ plt.ylabel("Pitch")
160
  plt.close()
161
 
162
  yield [500, output1], midi_plot, "Allegro-Music-Transformer-Music-Composition.mid", (44100, audio)