Skip to content

Commit

Permalink
Fix moviepy
Browse files Browse the repository at this point in the history
  • Loading branch information
Devininthelab committed Feb 28, 2025
1 parent 5fdef12 commit 417590a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lmms_eval/models/ola.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
AutoConfig.register("ola_qwen", OlaConfigQwen)
except:
eval_logger.debug("")
import moviepy.editor as mp
from moviepy.video.io.VideoFileClip import VideoFileClip

if "USE_SPEECH" in os.environ:
USE_SPEECH = os.environ["USE_SPEECH"]
Expand Down Expand Up @@ -353,7 +353,7 @@ def flatten(self, input):
return new_list

def extract_audio(self, videos_file_path):
my_clip = mp.VideoFileClip(videos_file_path)
my_clip = VideoFileClip(videos_file_path)
return my_clip.audio

def load_audio(self, audio_file_name):
Expand Down

0 comments on commit 417590a

Please sign in to comment.