Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yzld2002 committed Sep 6, 2024
1 parent 7335eb0 commit 405f5ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vision_agent/tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1518,7 +1518,9 @@ def save_video(
raise ValueError(f"fps must be greater than 0 got {fps}")

if output_video_path is None:
output_video_path = tempfile.NamedTemporaryFile(delete=False, suffix='.mp4').name
output_video_path = tempfile.NamedTemporaryFile(
delete=False, suffix=".mp4"
).name

output_video_path = video_writer(frames, fps, output_video_path)
_save_video_to_result(output_video_path)
Expand Down

0 comments on commit 405f5ac

Please sign in to comment.