MingGatsby commited on
Commit
11b0f5d
1 Parent(s): 6653e08

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -35,6 +35,7 @@ def extract_audio(video_path):
35
  clip = VideoFileClip(video_path)
36
  clip.audio.write_audiofile(audio_path, bitrate="32k")
37
  clip.audio.close()
 
38
  return audio_path
39
 
40
  def process_video(video_path, seconds_per_frame=2):
 
35
  clip = VideoFileClip(video_path)
36
  clip.audio.write_audiofile(audio_path, bitrate="32k")
37
  clip.audio.close()
38
+ clip.close()
39
  return audio_path
40
 
41
  def process_video(video_path, seconds_per_frame=2):