Update app.py
Browse files
app.py
CHANGED
|
@@ -255,14 +255,15 @@ if __name__ == "__main__":
|
|
| 255 |
value="*"
|
| 256 |
)
|
| 257 |
|
|
|
|
|
|
|
| 258 |
gr.Markdown("## Select generation options")
|
| 259 |
|
| 260 |
input_first_note_duration = gr.Slider(1, 127, value=15, step=1, label="First note duration value")
|
| 261 |
iinput_first_note_MIDI_pitch = gr.Slider(1, 127, value=60, step=1, label="First note MIDI pitch")
|
| 262 |
|
| 263 |
run_btn = gr.Button("Generate melody", variant="primary")
|
| 264 |
-
|
| 265 |
-
|
| 266 |
gr.Markdown("## Output results")
|
| 267 |
|
| 268 |
output_midi_title = gr.Textbox(label="Output MIDI title")
|
|
|
|
| 255 |
value="*"
|
| 256 |
)
|
| 257 |
|
| 258 |
+
clr_btn = gr.ClearButton(components=input_parsons_code)
|
| 259 |
+
|
| 260 |
gr.Markdown("## Select generation options")
|
| 261 |
|
| 262 |
input_first_note_duration = gr.Slider(1, 127, value=15, step=1, label="First note duration value")
|
| 263 |
iinput_first_note_MIDI_pitch = gr.Slider(1, 127, value=60, step=1, label="First note MIDI pitch")
|
| 264 |
|
| 265 |
run_btn = gr.Button("Generate melody", variant="primary")
|
| 266 |
+
|
|
|
|
| 267 |
gr.Markdown("## Output results")
|
| 268 |
|
| 269 |
output_midi_title = gr.Textbox(label="Output MIDI title")
|