asigalov61 commited on
Commit
ffd3c58
1 Parent(s): bcb58c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -151,7 +151,7 @@ def GenerateMIDI(num_tok, idrums, iinstr, progress=gr.Progress()):
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.set_facecolor('black')
157
  plt.scatter(x,y, c=c)
@@ -220,5 +220,4 @@ if __name__ == "__main__":
220
  output_midi = gr.File(label="output midi", file_types=[".mid"])
221
  run_event = run_btn.click(GenerateMIDI, [input_num_tokens, input_drums, input_instrument], [output_midi_seq, output_plot, output_midi, output_audio])
222
 
223
-
224
  app.queue(concurrency_count=1).launch(server_port=opt.port, share=opt.share, inbrowser=True)
 
151
  y.append(s[4])
152
  c.append(colors[s[3]])
153
 
154
+ plt.figure(figsize=(14,5))
155
  midi_plot = plt.axes(title='Allegro Music Transformer Composition')
156
  midi_plot.set_facecolor('black')
157
  plt.scatter(x,y, c=c)
 
220
  output_midi = gr.File(label="output midi", file_types=[".mid"])
221
  run_event = run_btn.click(GenerateMIDI, [input_num_tokens, input_drums, input_instrument], [output_midi_seq, output_plot, output_midi, output_audio])
222
 
 
223
  app.queue(concurrency_count=1).launch(server_port=opt.port, share=opt.share, inbrowser=True)