Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Dayof committed Oct 1, 2024
1 parent 294fecd commit 0b1c886
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vision_agent/tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ def florence2_phrase_grounding_image(

def florence2_phrase_grounding_video(
prompt: str, frames: List[np.ndarray], fine_tune_id: Optional[str] = None
) -> List[Dict[str, Any]]:
) -> List[List[Dict[str, Any]]]:
"""'florence2_phrase_grounding_video' will run florence2 on each frame of a video.
It can detect multiple objects given a text prompt which can be object names or
caption. You can optionally separate the object names in the text with commas.
Expand Down
4 changes: 2 additions & 2 deletions vision_agent/tools/tools_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class PromptTask(str, Enum):
class Florence2FtRequest(BaseModel):
model_config = ConfigDict(populate_by_name=True)

image: str | None
video: bytes | None
image: Optional[str] = None
video: Optional[bytes] = None
task: PromptTask
prompt: Optional[str] = ""
chunk_length_frames: Optional[int] = None
Expand Down

0 comments on commit 0b1c886

Please sign in to comment.