diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b3e9de56..2c76281dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ -## 0.4.9-dev0 +## 0.4.9-dev1 * Added ingest modules and s3 connector +* Default to `url=None` for `partition_pdf` and `partition_image` ## 0.4.8 diff --git a/docs/source/bricks.rst b/docs/source/bricks.rst index 80b8dd21b..0f244434c 100644 --- a/docs/source/bricks.rst +++ b/docs/source/bricks.rst @@ -142,7 +142,7 @@ Examples: from unstructured.partition.pdf import partition_pdf # Returns a List[Element] present in the pages of the parsed pdf document - elements = partition_pdf("example-docs/layout-parser-paper-fast.pdf", url=None) + elements = partition_pdf("example-docs/layout-parser-paper-fast.pdf") ``partition_image`` @@ -159,7 +159,7 @@ Examples: from unstructured.partition.image import partition_image # Returns a List[Element] present in the pages of the parsed image document - elements = partition_image("example-docs/layout-parser-paper-fast.jpg", url=None) + elements = partition_image("example-docs/layout-parser-paper-fast.jpg") diff --git a/unstructured/__version__.py b/unstructured/__version__.py index cf8927f93..65f235f32 100644 --- a/unstructured/__version__.py +++ b/unstructured/__version__.py @@ -1 +1 @@ -__version__ = "0.4.9-dev0" # pragma: no cover +__version__ = "0.4.9-dev1" # pragma: no cover diff --git a/unstructured/partition/image.py b/unstructured/partition/image.py index ffa218a0a..24a40975d 100644 --- a/unstructured/partition/image.py +++ b/unstructured/partition/image.py @@ -7,7 +7,7 @@ from unstructured.partition.pdf import partition_pdf_or_image def partition_image( filename: str = "", file: Optional[bytes] = None, - url: Optional[str] = "https://ml.unstructured.io/", + url: Optional[str] = None, template: Optional[str] = None, token: Optional[str] = None, include_page_breaks: bool = False, diff --git a/unstructured/partition/pdf.py b/unstructured/partition/pdf.py index 2bd8cd4d4..e62006453 100644 --- a/unstructured/partition/pdf.py +++ b/unstructured/partition/pdf.py @@ -9,7 +9,7 @@ from unstructured.partition.common import normalize_layout_element, document_to_ def partition_pdf( filename: str = "", file: Optional[bytes] = None, - url: Optional[str] = "https://ml.unstructured.io/", + url: Optional[str] = None, template: Optional[str] = None, token: Optional[str] = None, include_page_breaks: bool = False,