Fauno15 commited on
Commit
5eca8ce
1 Parent(s): 866bc93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,6 +7,6 @@ pipeline = pipeline.to("cuda")
7
 
8
  def denoise(length_sec):
9
  audios = pipeline(audio_length_in_s=length_sec).audios
10
- return audios
11
 
12
  gr.Interface(fn=denoise, inputs=gr.Slider(1.0, 6.0, value=3.0, step=0.5, label="Audio length in seconds"), outputs="audio").launch()
 
7
 
8
  def denoise(length_sec):
9
  audios = pipeline(audio_length_in_s=length_sec).audios
10
+ return (pipeline.unet.sample_rate, audios)
11
 
12
  gr.Interface(fn=denoise, inputs=gr.Slider(1.0, 6.0, value=3.0, step=0.5, label="Audio length in seconds"), outputs="audio").launch()