nakas commited on
Commit
ca2745f
·
1 Parent(s): 2938065

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -3
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import os
2
  import gradio as gr
3
  from scipy.io.wavfile import write
4
-
5
 
6
  def inference(audio):
7
  os.makedirs("out", exist_ok=True)
@@ -15,10 +15,16 @@ description = "Forked from here https://huggingface.co/spaces/akhaliq/demucs/ an
15
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/1911.13254' target='_blank'>Music Source Separation in the Waveform Domain</a> | <a href='https://github.com/facebookresearch/demucs' target='_blank'>Github Repo</a></p>"
16
 
17
  examples=[['test.mp3']]
 
18
  gr.Interface(
19
  inference,
20
- gr.inputs.Audio(type="numpy", label="Input"),
21
- [gr.outputs.Audio(type="file", label="Vocals"),gr.outputs.Audio(type="file", label="Bass"),gr.outputs.Audio(type="file", label="Drums"),gr.outputs.Audio(type="file", label="Other")],
 
 
 
 
 
22
  title=title,
23
  description=description,
24
  article=article,
 
1
  import os
2
  import gradio as gr
3
  from scipy.io.wavfile import write
4
+ from gradio import components
5
 
6
  def inference(audio):
7
  os.makedirs("out", exist_ok=True)
 
15
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/1911.13254' target='_blank'>Music Source Separation in the Waveform Domain</a> | <a href='https://github.com/facebookresearch/demucs' target='_blank'>Github Repo</a></p>"
16
 
17
  examples=[['test.mp3']]
18
+
19
  gr.Interface(
20
  inference,
21
+ components.Audio(type="numpy", label="Input"),
22
+ [
23
+ components.Audio(type="filepath", label="Vocals"),
24
+ components.Audio(type="filepath", label="Bass"),
25
+ components.Audio(type="filepath", label="Drums"),
26
+ components.Audio(type="filepath", label="Other")
27
+ ],
28
  title=title,
29
  description=description,
30
  article=article,