Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,14 +36,14 @@ def predict(input_audio, vc_transform, not_singing,cluster_ratio, noise_scale):
|
|
36 |
auto_predict_f0=not_singing,
|
37 |
noice_scale=0.4
|
38 |
)
|
39 |
-
return
|
40 |
|
41 |
|
42 |
app = gr.Blocks()
|
43 |
with app:
|
44 |
audio_input = gr.Audio(label="Upload Audio")
|
45 |
not_singing = gr.Checkbox(label="Check this box if this audio is not singing", value=False)
|
46 |
-
audio_output = gr.Audio(label="Output Audio"
|
47 |
submit_btn = gr.Button("Submit", variant="primary")
|
48 |
-
submit_btn.click(predict, [audio_input, not_singing], [audio_output
|
49 |
app.launch()
|
|
|
36 |
auto_predict_f0=not_singing,
|
37 |
noice_scale=0.4
|
38 |
)
|
39 |
+
return (44100, out_audio.numpy())
|
40 |
|
41 |
|
42 |
app = gr.Blocks()
|
43 |
with app:
|
44 |
audio_input = gr.Audio(label="Upload Audio")
|
45 |
not_singing = gr.Checkbox(label="Check this box if this audio is not singing", value=False)
|
46 |
+
audio_output = gr.Audio(label="Output Audio")
|
47 |
submit_btn = gr.Button("Submit", variant="primary")
|
48 |
+
submit_btn.click(predict, [audio_input, not_singing], [audio_output], api_name="predict")
|
49 |
app.launch()
|