Skip to content

Commit 0da73f1

Browse files
committed
Remove Image.__init__
1 parent 4b37b34 commit 0da73f1

File tree

1 file changed

+0
-19
lines changed
  • libs/community/langchain_community/document_loaders/parsers

1 file changed

+0
-19
lines changed

libs/community/langchain_community/document_loaders/parsers/images.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,6 @@
2222
class BaseImageBlobParser(BaseBlobParser):
2323
"""Abstract base class for parsing image blobs into text."""
2424

25-
def __init__(
26-
self,
27-
*,
28-
format: Union[Literal["text", "markdown-img", "html-img"], str] = "text",
29-
) -> None:
30-
"""Initializes the BaseImageBlobParser.
31-
32-
Args:
33-
format (Literal["text", "markdown-img", "html-img"]|str):
34-
The format for the parsed output.
35-
- "text" = return the content as is
36-
- "markdown-img" = wrap the content into an image markdown link, w/ link
37-
pointing to (`![body)(#)`]
38-
- "html-img" = wrap the content as the `alt` text of an tag and link to
39-
(`<img alt="{body}" src="#"/>`)
40-
- or other formats if the parser supports it
41-
"""
42-
self.format = format
43-
4425
@abstractmethod
4526
def _analyze_image(self, img: "Image") -> str:
4627
"""Abstract method to analyze an image and extract textual content.

0 commit comments

Comments
 (0)