§
    ¦ìNg¯  ã                   ó:   — d dl mZ d dlmZ  G d„ de¦  «        ZdS )é    )ÚList)ÚUnstructuredFileLoaderc                   ó   — e Zd ZdZdefd„ZdS )ÚUnstructuredImageLoadera'  Load `PNG` and `JPG` files using `Unstructured`.

    You can run the loader in one of two modes: "single" and "elements".
    If you use "single" mode, the document will be returned as a single
    langchain Document object. If you use "elements" mode, the unstructured
    library will split the document into elements such as Title and NarrativeText.
    You can pass in additional unstructured kwargs after mode to apply
    different unstructured settings.

    Examples
    --------
    from langchain_community.document_loaders import UnstructuredImageLoader

    loader = UnstructuredImageLoader(
        "example.png", mode="elements", strategy="fast",
    )
    docs = loader.load()

    References
    ----------
    https://unstructured-io.github.io/unstructured/bricks.html#partition-image
    Úreturnc                 ó6   — ddl m}  |dd| j        i| j        ¤ŽS )Nr   )Úpartition_imageÚfilename© )Úunstructured.partition.imager	   Ú	file_pathÚunstructured_kwargs)Úselfr	   s     úf/var/www/html/ai-engine/env/lib/python3.11/site-packages/langchain_community/document_loaders/image.pyÚ_get_elementsz%UnstructuredImageLoader._get_elements   s4   € Ø@Ð@Ð@Ð@Ð@Ð@àˆÐSÐS¨¬ÐS¸$Ô:RÐSÐSÐSó    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r      s@   € € € € € ðð ð.T˜tð Tð Tð Tð Tð Tð Tr   r   N)Útypingr   Ú1langchain_community.document_loaders.unstructuredr   r   r   r   r   ú<module>r      sh   ðØ Ð Ð Ð Ð Ð à TÐ TÐ TÐ TÐ TÐ TðTð Tð Tð Tð TÐ4ñ Tô Tð Tð Tð Tr   