johann22 commited on
Commit
97d13f3
1 Parent(s): 50c0ed3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -16,7 +16,7 @@ def write_song():
16
  C('G7sus', 2, 1/4, 1/8)^2) * 2
17
 
18
  write(guitar, name="tmp.wav", save_as_file=True, bpm=100, instrument=25)
19
- return "tmp.wav"
20
  def write_song2():
21
 
22
  #current_daw = daw(3)
@@ -121,5 +121,6 @@ def make_mid():
121
  with gr.Blocks() as iface:
122
  btn=gr.Button()
123
  outp=gr.Files()
124
- btn.click(write_song,None,outp)
 
125
  iface.launch()
 
16
  C('G7sus', 2, 1/4, 1/8)^2) * 2
17
 
18
  write(guitar, name="tmp.wav", save_as_file=True, bpm=100, instrument=25)
19
+ return "tmp.wav","tmp.wav"
20
  def write_song2():
21
 
22
  #current_daw = daw(3)
 
121
  with gr.Blocks() as iface:
122
  btn=gr.Button()
123
  outp=gr.Files()
124
+ aud=gr.Audio()
125
+ btn.click(write_song,None,[outp,aud])
126
  iface.launch()