asigalov61 commited on
Commit
79018d5
·
verified ·
1 Parent(s): 136e3ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
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")