Update app.py
Browse files
app.py
CHANGED
@@ -254,9 +254,14 @@ if __name__ == "__main__":
|
|
254 |
lines=1,
|
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")
|
|
|
254 |
lines=1,
|
255 |
value="*"
|
256 |
)
|
257 |
+
|
258 |
clr_btn = gr.ClearButton(components=input_parsons_code)
|
259 |
|
260 |
+
def reset_pcode():
|
261 |
+
return '*'
|
262 |
+
|
263 |
+
clr_btn.click(reset_pcode, outputs=input_parsons_code)
|
264 |
+
|
265 |
gr.Markdown("## Select generation options")
|
266 |
|
267 |
input_first_note_duration = gr.Slider(1, 127, value=15, step=1, label="First note duration value")
|