Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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()
|