Spaces:
Runtime error
Runtime error
Daryl Fung
commited on
Commit
•
93ccc0f
1
Parent(s):
c2a1867
fix ffmpeg
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def spleeter(separator, aud, model_dropdown, model_file, index_file, pitch):
|
|
51 |
)[0]
|
52 |
|
53 |
# combine accompaniment and vocal
|
54 |
-
command = f"""ffmpeg -i "{result}" -i "{accompaniment_filename}" -filter_complex amix=inputs=2:duration=longest "{song_filename}" """
|
55 |
subprocess.call(command, shell=True)
|
56 |
|
57 |
return song_filename
|
|
|
51 |
)[0]
|
52 |
|
53 |
# combine accompaniment and vocal
|
54 |
+
command = f"""ffmpeg -y -i "{result}" -i "{accompaniment_filename}" -filter_complex amix=inputs=2:duration=longest "{song_filename}" """
|
55 |
subprocess.call(command, shell=True)
|
56 |
|
57 |
return song_filename
|