fffiloni commited on
Commit
d682a07
1 Parent(s): ad6ae4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -114,6 +114,7 @@ def process_image(image_in):
114
  '''
115
 
116
  def extract_audio(video_path):
 
117
  # Check if the video has audio
118
  if video_clip.audio is not None:
119
  audio_clip = video_clip.audio
 
114
  '''
115
 
116
  def extract_audio(video_path):
117
+ video_clip = VideoFileClip(video_path)
118
  # Check if the video has audio
119
  if video_clip.audio is not None:
120
  audio_clip = video_clip.audio