Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,14 +22,7 @@ def acapellify(url):
|
|
22 |
|
23 |
video_path = video.get_file_path()
|
24 |
|
25 |
-
(
|
26 |
-
ffmpeg
|
27 |
-
.input(video_path)
|
28 |
-
.audio
|
29 |
-
.output('audio.m4a', format='mp4')
|
30 |
-
.overwrite_output()
|
31 |
-
.run()
|
32 |
-
)
|
33 |
|
34 |
result = client.predict(
|
35 |
'audio.m4a',
|
|
|
22 |
|
23 |
video_path = video.get_file_path()
|
24 |
|
25 |
+
subprocess.run(['ffmpeg', '-i', video_path, '-vn', '-c:a', 'copy', 'audio.m4a', '-y'])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
result = client.predict(
|
28 |
'audio.m4a',
|