Skip to content

Commit

Permalink
OCR class changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DhruvaBansal00 committed Nov 11, 2024
1 parent 02cad6d commit c767232
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/autolabel/transforms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from .serper_api import SerperApi
from .serper_maps import SerperMaps
from .custom_api import CustomApi
from .ocr import OCRTransform
from .webpage_transform import WebpageTransform
from .image import ImageTransform
from typing import Dict
Expand All @@ -15,6 +16,7 @@
logger = logging.getLogger(__name__)

TRANSFORM_REGISTRY = {
TransformType.OCR: OCRTransform,
TransformType.PDF: PDFTransform,
TransformType.WEBPAGE_TRANSFORM: WebpageTransform,
TransformType.IMAGE: ImageTransform,
Expand Down
1 change: 1 addition & 0 deletions src/autolabel/transforms/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class TransformType(str, Enum):
WEB_SEARCH_SERPER = "web_search"
MAPS_SEARCH = "map_search"
CUSTOM_API = "custom_api"
OCR = "ocr"


class TransformCacheEntry(BaseModel):
Expand Down

0 comments on commit c767232

Please sign in to comment.