baaastien commited on
Commit
4bc3f3d
1 Parent(s): 152d707

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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>. It uses the Spleeter library for separate audio file in two stems : accompaniments and vocals. Once splitted, it performs ASR (Automatic Speech Recognition) based on a Wav2vec2 english model."
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,