asigalov61 commited on
Commit
2b29c59
·
verified ·
1 Parent(s): c292aa6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -330,8 +330,8 @@ if __name__ == "__main__":
330
 
331
  gr.Markdown("## Select generation options")
332
 
333
- total_song_length_in_chords_chunks = gr.Slider(5, 12, value=10, step=1, label="Total song length in chords chunks")
334
- chords_chunks_memory_length = gr.Slider(-1, 15, value=-1, step=1, label="Chords chunks memory length")
335
  chord_time_step = gr.Slider(100, 1000, value=500, step=50, label="Chord time step")
336
  melody_MIDI_patch_number = gr.Slider(0, 127, value=40, step=1, label="Melody MIDI patch number")
337
  chords_progression_MIDI_patch_number = gr.Slider(0, 127, value=0, step=1, label="Chords progression MIDI patch number")
@@ -341,7 +341,7 @@ if __name__ == "__main__":
341
 
342
  gr.Markdown("## Generation results")
343
 
344
- output_audio = gr.Audio(label="Output MIDI audio", format="wav", elem_id="midi_audio")
345
  output_plot = gr.Plot(label="Output MIDI score plot")
346
  output_midi = gr.File(label="Output MIDI file", file_types=[".mid"])
347
 
 
330
 
331
  gr.Markdown("## Select generation options")
332
 
333
+ total_song_length_in_chords_chunks = gr.Slider(4, 10, value=8, step=1, label="Total song length in chords chunks")
334
+ chords_chunks_memory_length = gr.Slider(-1, 12, value=-1, step=1, label="Chords chunks memory length")
335
  chord_time_step = gr.Slider(100, 1000, value=500, step=50, label="Chord time step")
336
  melody_MIDI_patch_number = gr.Slider(0, 127, value=40, step=1, label="Melody MIDI patch number")
337
  chords_progression_MIDI_patch_number = gr.Slider(0, 127, value=0, step=1, label="Chords progression MIDI patch number")
 
341
 
342
  gr.Markdown("## Generation results")
343
 
344
+ output_audio = gr.Audio(label="Output MIDI audio", format="mp3", elem_id="midi_audio")
345
  output_plot = gr.Plot(label="Output MIDI score plot")
346
  output_midi = gr.File(label="Output MIDI file", file_types=[".mid"])
347