abidlabs HF staff commited on
Commit
4f812c8
1 Parent(s): 04a6916

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
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',