asigalov61
commited on
Update app.py
Browse files
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(
|
334 |
-
chords_chunks_memory_length = gr.Slider(-1,
|
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="
|
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 |
|