readgrid 0.1.0__tar.gz → 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {readgrid-0.1.0 → readgrid-0.1.1}/LICENSE +2 -2
- {readgrid-0.1.0/readgrid.egg-info → readgrid-0.1.1}/PKG-INFO +2 -2
- {readgrid-0.1.0 → readgrid-0.1.1}/README.md +1 -1
- {readgrid-0.1.0 → readgrid-0.1.1}/readgrid/pipeline.py +8 -3
- {readgrid-0.1.0 → readgrid-0.1.1/readgrid.egg-info}/PKG-INFO +2 -2
- {readgrid-0.1.0 → readgrid-0.1.1}/setup.py +1 -1
- {readgrid-0.1.0 → readgrid-0.1.1}/pyproject.toml +0 -0
- {readgrid-0.1.0 → readgrid-0.1.1}/readgrid/__init__.py +0 -0
- {readgrid-0.1.0 → readgrid-0.1.1}/readgrid.egg-info/SOURCES.txt +0 -0
- {readgrid-0.1.0 → readgrid-0.1.1}/readgrid.egg-info/dependency_links.txt +0 -0
- {readgrid-0.1.0 → readgrid-0.1.1}/readgrid.egg-info/requires.txt +0 -0
- {readgrid-0.1.0 → readgrid-0.1.1}/readgrid.egg-info/top_level.txt +0 -0
- {readgrid-0.1.0 → readgrid-0.1.1}/setup.cfg +0 -0
@@ -1,5 +1,7 @@
|
|
1
1
|
MIT License
|
2
2
|
|
3
|
+
Copyright (c) 2025 David K. Jeremiah
|
4
|
+
|
3
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
6
|
of this software and associated documentation files (the "Software"), to deal
|
5
7
|
in the Software without restriction, including without limitation the rights
|
@@ -17,5 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
21
|
SOFTWARE.
|
20
|
-
|
21
|
-
© 2025 David
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: readgrid
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.1
|
4
4
|
Summary: A document layout pipeline for detecting tables, images, and structured extraction.
|
5
5
|
Home-page: https://github.com/davidkjeremiah/readgrid
|
6
6
|
Author: David Jeremiah
|
@@ -110,4 +110,4 @@ stage_3(api_key="YOUR_API_KEY")
|
|
110
110
|
## 📄 License
|
111
111
|
|
112
112
|
MIT License.
|
113
|
-
See
|
113
|
+
See LICENSE for details.
|
@@ -679,7 +679,8 @@ def stage_3(
|
|
679
679
|
api_key: Optional[str] = None,
|
680
680
|
custom_system_prompt: Optional[str] = None,
|
681
681
|
output_fields: Optional[List[str]] = None,
|
682
|
-
exclude_fields: Optional[List[str]] = None
|
682
|
+
exclude_fields: Optional[List[str]] = None,
|
683
|
+
model_name: Optional[str] = None,
|
683
684
|
):
|
684
685
|
"""
|
685
686
|
Processes annotated images through LLM with customizable JSON output.
|
@@ -712,7 +713,11 @@ def stage_3(
|
|
712
713
|
|
713
714
|
print(f"ℹ️ Final JSON will include: {fields_to_include}")
|
714
715
|
|
715
|
-
#
|
716
|
+
# Determine model
|
717
|
+
chosen_model = model_name or "gemini-1.5-flash"
|
718
|
+
print(f"ℹ️ Using model: {chosen_model}")
|
719
|
+
|
720
|
+
# --- 2. Configure Model API ---
|
716
721
|
if not api_key:
|
717
722
|
try:
|
718
723
|
api_key = getpass("🔑 Please enter your Model's API Key: ")
|
@@ -788,7 +793,7 @@ def stage_3(
|
|
788
793
|
|
789
794
|
# --- 4. Initialize Model and Load Data ---
|
790
795
|
model = genai.GenerativeModel(
|
791
|
-
model_name=
|
796
|
+
model_name=chosen_model,
|
792
797
|
system_instruction=system_prompt
|
793
798
|
)
|
794
799
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: readgrid
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.1
|
4
4
|
Summary: A document layout pipeline for detecting tables, images, and structured extraction.
|
5
5
|
Home-page: https://github.com/davidkjeremiah/readgrid
|
6
6
|
Author: David Jeremiah
|
@@ -110,4 +110,4 @@ stage_3(api_key="YOUR_API_KEY")
|
|
110
110
|
## 📄 License
|
111
111
|
|
112
112
|
MIT License.
|
113
|
-
See
|
113
|
+
See LICENSE for details.
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name="readgrid",
|
5
|
-
version="0.1.
|
5
|
+
version="0.1.1",
|
6
6
|
author="David Jeremiah",
|
7
7
|
author_email="flasconnect@gmail.com",
|
8
8
|
description="A document layout pipeline for detecting tables, images, and structured extraction.",
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|