Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
4eba02e
1
Parent(s):
e99861a
Update app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,10 @@ os.system('pip install -U torchtext==0.8.0')
|
|
8 |
os.system('./separate_scripts/download_checkpoints.sh')
|
9 |
|
10 |
def inference(audio):
|
11 |
-
os.system('./separate_scripts/separate_vocals.sh ' + audio.name + ' "sep_vocals.mp3"')
|
12 |
-
os.system('./separate_scripts/separate_accompaniment.sh ' + audio.name + ' "sep_accompaniment.mp3"')
|
|
|
|
|
13 |
return 'sep_vocals.mp3', 'sep_accompaniment.mp3'
|
14 |
title = "Music Source Separation"
|
15 |
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"
|
|
|
8 |
os.system('./separate_scripts/download_checkpoints.sh')
|
9 |
|
10 |
def inference(audio):
|
11 |
+
#os.system('./separate_scripts/separate_vocals.sh ' + audio.name + ' "sep_vocals.mp3"')
|
12 |
+
#os.system('./separate_scripts/separate_accompaniment.sh ' + audio.name + ' "sep_accompaniment.mp3"')
|
13 |
+
os.system('python separate_scripts/separate.py --audio_path=' +audio.name+' --source_type="accompaniment"')
|
14 |
+
os.system('python separate_scripts/separate.py --audio_path=' +audio.name+' --source_type="vocals"')
|
15 |
return 'sep_vocals.mp3', 'sep_accompaniment.mp3'
|
16 |
title = "Music Source Separation"
|
17 |
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"
|