asigalov61 commited on
Commit
510fa10
1 Parent(s): 115a10b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -135,7 +135,7 @@ def Generate_Chords_Progression(total_song_length_in_chords_chunks,
135
  print('-' * 70)
136
  print('Req execution time:', (reqtime.time() - start_time), 'sec')
137
 
138
- return classification_summary_string
139
 
140
  # =================================================================================================
141
 
@@ -181,6 +181,10 @@ if __name__ == "__main__":
181
  run_btn = gr.Button("generate", variant="primary")
182
 
183
  gr.Markdown("## Generation results")
 
 
 
 
184
 
185
  output_cp_summary = gr.Textbox(label="Generated chords progression info and stats")
186
 
@@ -191,7 +195,7 @@ if __name__ == "__main__":
191
  melody_MIDI_patch_number,
192
  chords_progression_MIDI_patch_number,
193
  base_MIDI_patch_number],
194
- [output_midi_cls_summary]
195
  )
196
 
197
  app.queue().launch()
 
135
  print('-' * 70)
136
  print('Req execution time:', (reqtime.time() - start_time), 'sec')
137
 
138
+ return output_audio, output_plot, output_midi, output_cp_summary
139
 
140
  # =================================================================================================
141
 
 
181
  run_btn = gr.Button("generate", variant="primary")
182
 
183
  gr.Markdown("## Generation results")
184
+
185
+ output_audio = gr.Audio(label="Output MIDI audio", format="wav", elem_id="midi_audio")
186
+ output_plot = gr.Plot(label="Output MIDI score plot")
187
+ output_midi = gr.File(label="Output MIDI file", file_types=[".mid"])
188
 
189
  output_cp_summary = gr.Textbox(label="Generated chords progression info and stats")
190
 
 
195
  melody_MIDI_patch_number,
196
  chords_progression_MIDI_patch_number,
197
  base_MIDI_patch_number],
198
+ [output_audio, output_plot, output_midi, output_cp_summary]
199
  )
200
 
201
  app.queue().launch()