Skip to content

Commit

Permalink
return outside of context
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Aug 29, 2024
1 parent 51503b9 commit 0ed6bb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vision_agent/tools/tools.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import os
import io
import json
import logging
import os
import tempfile
import urllib.request
from importlib import resources
from pathlib import Path
from typing import Any, Dict, List, Optional, Tuple, Union, cast
Expand All @@ -15,7 +16,6 @@
from PIL import Image, ImageDraw, ImageFont
from pillow_heif import register_heif_opener # type: ignore
from pytube import YouTube # type: ignore
import urllib.request

from vision_agent.clients.landing_public_api import LandingPublicAPI
from vision_agent.tools.tool_utils import (
Expand Down Expand Up @@ -1332,7 +1332,7 @@ def save_video(
video.write_videofile(f.name, codec="libx264")
f.close()
_save_video_to_result(f.name)
return f.name
return f.name


def _save_video_to_result(video_uri: str) -> None:
Expand Down

0 comments on commit 0ed6bb7

Please sign in to comment.