Skip to content

Commit

Permalink
added check
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayush0054 committed Dec 23, 2024
1 parent 46bd129 commit ee09b97
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion phi/tools/moviepy_video_tools.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
from phi.tools import Toolkit
from moviepy import VideoFileClip, TextClip, CompositeVideoClip, ColorClip # type: ignore
from phi.utils.log import logger
from typing import List, Dict

try:
from moviepy import VideoFileClip, TextClip, CompositeVideoClip, ColorClip # type: ignore
except ImportError:
raise ImportError(
"`moviepy` not installed. Please install using `pip install moviepy`"
)


class MoviePyVideoTools(Toolkit):
"""Tool for processing video files, extracting audio, transcribing and adding captions"""
Expand Down

0 comments on commit ee09b97

Please sign in to comment.