Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,13 +34,13 @@ def extract_stems(audio):
|
|
34 |
# Output is two audio files and a transcript
|
35 |
|
36 |
title = "Demo: Deezer Spleeter + english Automatic Speech Recognition"
|
37 |
-
description = "This demo is a basic interface for <a href='https://research.deezer.com/projects/spleeter.html' target='_blank'>Deezer Spleeter</a
|
38 |
examples = [["examples/" + mp3] for mp3 in os.listdir("examples/")]
|
39 |
|
40 |
demo = gr.Interface(
|
41 |
fn=extract_stems,
|
42 |
inputs=gr.Audio(source="upload", type="filepath"),
|
43 |
-
outputs=[gr.Audio(label="Vocals stem", source="upload", type="filepath"), gr.Audio(label="Accompaniment stem", source="upload", type="filepath"), gr.Textbox(label="Automatic Speech Recognition (English)")],
|
44 |
title=title,
|
45 |
description=description,
|
46 |
examples=examples,
|
|
|
34 |
# Output is two audio files and a transcript
|
35 |
|
36 |
title = "Demo: Deezer Spleeter + english Automatic Speech Recognition"
|
37 |
+
description = "<p>This demo is a basic interface for <a href='https://research.deezer.com/projects/spleeter.html' target='_blank'>Deezer Spleeter</a>.</p><p>It uses the Spleeter library for separate audio file in two stems : accompaniments and vocals.</p><p>Once splitted, it performs ASR (Automatic Speech Recognition) based on a Wav2vec2 english model.</p>"
|
38 |
examples = [["examples/" + mp3] for mp3 in os.listdir("examples/")]
|
39 |
|
40 |
demo = gr.Interface(
|
41 |
fn=extract_stems,
|
42 |
inputs=gr.Audio(source="upload", type="filepath"),
|
43 |
+
outputs=[gr.Audio(label="Vocals stem", source="upload", type="filepath"), gr.Audio(label="Accompaniment stem", source="upload", type="filepath"), gr.Textbox(label="Wave2vec2 Automatic Speech Recognition (English)")],
|
44 |
title=title,
|
45 |
description=description,
|
46 |
examples=examples,
|