Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wuyiqunLu committed Sep 14, 2024
1 parent 5509c3d commit 98e8bc8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vision_agent/agent/vision_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,10 @@ def chat_with_code(
if file_path.lower().endswith(
".mp4"
) or file_path.lower().endswith(".mov"):
ndarray = extract_frames(media)
save_video([frame for frame, _ in ndarray], file_path)
video_frames = extract_frames(media)
save_video(
[frame for frame, _ in video_frames], file_path
)
else:
ndarray = load_image(media)
save_image(ndarray, file_path)
Expand Down

0 comments on commit 98e8bc8

Please sign in to comment.