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