Skip to content

Commit

Permalink
Update video.py
Browse files Browse the repository at this point in the history
Updated WARNING with correct grammar
  • Loading branch information
Ldragon27 committed Dec 13, 2024
1 parent 59bec67 commit f3fce1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vision_agent/utils/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ def frames_to_bytes(
return buffer_bytes


# WARNING: this cache is cache is a little dangerous because if the underlying video
# contents change but the filename remains the same it will return the old file contents
# but for vision agent it's unlikely to change the file contents while keeping the
# WARNING: This cache is a little dangerous because if the underlying video
# contents change but the filename remains the same it will return the old file contents.
# For vision agent it's unlikely to change the file contents while keeping the
# same file name and the time savings are very large.
@lru_cache(maxsize=8)
def extract_frames_from_video(
Expand Down

0 comments on commit f3fce1f

Please sign in to comment.