Skip to content

Commit

Permalink
Fix imports order
Browse files Browse the repository at this point in the history
  • Loading branch information
pprados committed Dec 19, 2024
1 parent c8ec906 commit aaac17d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Module contains common parsers for PDFs."""

import asyncio
import base64
import html
Expand Down Expand Up @@ -28,8 +27,6 @@

import numpy as np
from langchain.prompts import Prompt
from langchain_community.document_loaders.base import BaseBlobParser
from langchain_community.document_loaders.blob_loaders import Blob
from langchain_core._api.deprecation import (
deprecated,
)
Expand All @@ -38,6 +35,9 @@
from langchain_core.messages import HumanMessage
from langchain_core.prompts import BasePromptTemplate, PromptTemplate

from langchain_community.document_loaders.base import BaseBlobParser
from langchain_community.document_loaders.blob_loaders import Blob

if TYPE_CHECKING:
import pdfplumber
import pdfplumber.page
Expand Down
8 changes: 4 additions & 4 deletions libs/community/langchain_community/document_loaders/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@
from urllib.parse import urlparse

import requests
from langchain_community.document_loaders.base import BaseLoader
from langchain_community.document_loaders.blob_loaders import Blob
from langchain_community.document_loaders.dedoc import DedocBaseLoader
from langchain_community.document_loaders.unstructured import UnstructuredFileLoader
from langchain_core._api.deprecation import deprecated
from langchain_core.documents import Document
from langchain_core.utils import get_from_dict_or_env

from langchain_community.document_loaders.base import BaseLoader
from langchain_community.document_loaders.blob_loaders import Blob
from langchain_community.document_loaders.dedoc import DedocBaseLoader
from langchain_community.document_loaders.parsers.pdf import (
CONVERT_IMAGE_TO_TEXT,
AmazonTextractPDFParser,
Expand All @@ -43,6 +42,7 @@
ZeroxPDFParser,
_default_page_delimitor,
)
from langchain_community.document_loaders.unstructured import UnstructuredFileLoader

if TYPE_CHECKING:
from textractor.data.text_linearization_config import TextLinearizationConfig
Expand Down

0 comments on commit aaac17d

Please sign in to comment.