Stranger in the Moonlight commited on
Commit
8d873bc
1 Parent(s): 7c78b90
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -13,8 +13,8 @@ def spleeter(aud, instrument):
13
  return f"./output/audio_example/{instrument}.wav", f"./output/audio_example/{instrument}.wav"
14
 
15
  inputs = [
16
- gr.inputs.Audio(label="Input Audio", type="file"),
17
- gr.inputs.Radio(label="Instrument", choices=["vocals", "accompaniment"], type="value")
18
  ]
19
  outputs = [
20
  gr.outputs.Audio(label="Output Audio", type="file"),
@@ -23,7 +23,7 @@ outputs = [
23
 
24
  title = "Spleeter"
25
  description = "Gradio demo for Spleeter: a fast and efficient music source separation tool with pre-trained models. To use it, simply upload your audio, or click one of the examples to load them. Read more at the links below."
26
- article = "<p style='text-align: center'><a href='https://research.deezer.com/projects/spleeter.html'>Spleeter: a Fast and Efficient Music Source Separation Tool with Pre-Trained Models</a> | <a href='https://github.com/deezer/spleeter'>Github Repo</a></p>"
27
  examples = [
28
  ["audio_example.mp3", "vocals"]
29
  ]
 
13
  return f"./output/audio_example/{instrument}.wav", f"./output/audio_example/{instrument}.wav"
14
 
15
  inputs = [
16
+ gr.inputs.Audio(label="Input Audio File", type="file"),
17
+ gr.inputs.Radio(label="Output", choices=["accompaniment", "vocals"], type="value")
18
  ]
19
  outputs = [
20
  gr.outputs.Audio(label="Output Audio", type="file"),
 
23
 
24
  title = "Spleeter"
25
  description = "Gradio demo for Spleeter: a fast and efficient music source separation tool with pre-trained models. To use it, simply upload your audio, or click one of the examples to load them. Read more at the links below."
26
+ article = "<p style='text-align: center'><a href='https://research.deezer.com/projects/spleeter.html'>Spleeter: a Fast and Efficient Music Source Separation Tool with Pre-Trained Models</a></p>"
27
  examples = [
28
  ["audio_example.mp3", "vocals"]
29
  ]