Spaces:
Running
Running
feat: directly pass input filepath
Browse files
app.py
CHANGED
@@ -5,10 +5,9 @@ from scipy.io.wavfile import write
|
|
5 |
|
6 |
def inference(audio, is_fast):
|
7 |
os.makedirs("out", exist_ok=True)
|
8 |
-
|
9 |
-
write('test.wav', audio[0], audio[1])
|
10 |
os.environ['DANNA_CHECKPOINTS'] = './checkpoints'
|
11 |
-
cmd = "danna_sep --outdir out
|
12 |
if is_fast:
|
13 |
cmd += " --fast"
|
14 |
os.system(cmd)
|
|
|
5 |
|
6 |
def inference(audio, is_fast):
|
7 |
os.makedirs("out", exist_ok=True)
|
8 |
+
# write('test.wav', audio[0], audio[1])
|
|
|
9 |
os.environ['DANNA_CHECKPOINTS'] = './checkpoints'
|
10 |
+
cmd = f"danna_sep --outdir out {audio}"
|
11 |
if is_fast:
|
12 |
cmd += " --fast"
|
13 |
os.system(cmd)
|