Skip to content

Commit

Permalink
fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Mar 6, 2024
1 parent 91d046e commit 4767d6d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions vision_agent/tools/tools.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
from typing import Dict, List, Union

from PIL.Image import Image as ImageType


class Classifier:
def __init__(self, prompt: str):
self.prompt = prompt

def __call__(self: image: Union[str, Image]) -> List[Dict]:
def __call__(self, image: Union[str, ImageType]) -> List[Dict]:
raise NotImplementedError


class Detector:
def __init__(self, prompt: str):
self.prompt = prompt

def __call__(self: image: Union[str, Image]) -> List[Dict]:
def __call__(self, image: Union[str, ImageType]) -> List[Dict]:
raise NotImplementedError


class Segmentor:
def __init__(self, prompt: str):
self.prompt = prompt

def __call__(self: image: Union[str, Image]) -> List[Dict]:
def __call__(self, image: Union[str, ImageType]) -> List[Dict]:
raise NotImplementedError

0 comments on commit 4767d6d

Please sign in to comment.