Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
b8e9a43
1
Parent(s):
ba8e327
Update app.py
Browse files
app.py
CHANGED
@@ -10,9 +10,10 @@ def inference(audio):
|
|
10 |
os.system('./separate_scripts/separate_accompaniment.sh ' + audio.name + ' "sep_accompaniment.mp3"')
|
11 |
return 'sep_vocals.mp3', 'sep_accompaniment.mp3'
|
12 |
title = "Music Source Separation"
|
13 |
-
description = "Gradio demo for Music Source Separation. To use it, simply add your audio, or click one of the examples to load them. Read more at the links below."
|
14 |
article = "<p style='text-align: center'><a href='https://github.com/bytedance/music_source_separation'>Decoupling Magnitude and Phase Estimation with Deep ResUNet for Music Source Separation</a> | <a href='https://github.com/bytedance/music_source_separation'>Github Repo</a></p>"
|
15 |
|
|
|
16 |
gr.Interface(
|
17 |
inference,
|
18 |
gr.inputs.Audio(type="file", label="Input"),
|
@@ -20,5 +21,6 @@ gr.Interface(
|
|
20 |
title=title,
|
21 |
description=description,
|
22 |
article=article,
|
23 |
-
enable_queue=True
|
|
|
24 |
).launch(debug=True)
|
|
|
10 |
os.system('./separate_scripts/separate_accompaniment.sh ' + audio.name + ' "sep_accompaniment.mp3"')
|
11 |
return 'sep_vocals.mp3', 'sep_accompaniment.mp3'
|
12 |
title = "Music Source Separation"
|
13 |
+
description = "Gradio demo for Music Source Separation. To use it, simply add your audio, or click one of the examples to load them. Read more at the links below. Currently supports .wav files"
|
14 |
article = "<p style='text-align: center'><a href='https://github.com/bytedance/music_source_separation'>Decoupling Magnitude and Phase Estimation with Deep ResUNet for Music Source Separation</a> | <a href='https://github.com/bytedance/music_source_separation'>Github Repo</a></p>"
|
15 |
|
16 |
+
examples = [['example.wav']]
|
17 |
gr.Interface(
|
18 |
inference,
|
19 |
gr.inputs.Audio(type="file", label="Input"),
|
|
|
21 |
title=title,
|
22 |
description=description,
|
23 |
article=article,
|
24 |
+
enable_queue=True,
|
25 |
+
examples=examples
|
26 |
).launch(debug=True)
|