tinydoc 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.
- tinydoc-0.1.1/MANIFEST.in +1 -0
- {tinydoc-0.1.0 → tinydoc-0.1.1}/PKG-INFO +29 -1
- tinydoc-0.1.1/README.md +24 -0
- {tinydoc-0.1.0 → tinydoc-0.1.1}/setup.py +3 -1
- {tinydoc-0.1.0 → tinydoc-0.1.1}/tinydoc.egg-info/PKG-INFO +29 -1
- {tinydoc-0.1.0 → tinydoc-0.1.1}/tinydoc.egg-info/SOURCES.txt +2 -0
- {tinydoc-0.1.0 → tinydoc-0.1.1}/setup.cfg +0 -0
- {tinydoc-0.1.0 → tinydoc-0.1.1}/tinydoc/__init__.py +0 -0
- {tinydoc-0.1.0 → tinydoc-0.1.1}/tinydoc/extractor.py +0 -0
- {tinydoc-0.1.0 → tinydoc-0.1.1}/tinydoc/models.py +0 -0
- {tinydoc-0.1.0 → tinydoc-0.1.1}/tinydoc.egg-info/dependency_links.txt +0 -0
- {tinydoc-0.1.0 → tinydoc-0.1.1}/tinydoc.egg-info/requires.txt +0 -0
- {tinydoc-0.1.0 → tinydoc-0.1.1}/tinydoc.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include README.md
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tinydoc
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Python SDK for TinyDoc-VLM document understanding — the world's smallest document-specialist VLM
|
|
5
5
|
Home-page: https://github.com/eulogik/TinyDoc-VLM
|
|
6
6
|
Author: eulogik
|
|
7
7
|
Author-email: hello@eulogik.com
|
|
8
8
|
Project-URL: HuggingFace Model, https://huggingface.co/eulogik/TinyDoc-VLM-256M
|
|
9
|
+
Project-URL: HuggingFace Space, https://huggingface.co/spaces/eulogik/TinyDoc-VLM
|
|
9
10
|
Project-URL: Bug Tracker, https://github.com/eulogik/TinyDoc-VLM/issues
|
|
10
11
|
Project-URL: Documentation, https://github.com/eulogik/TinyDoc-VLM#readme
|
|
12
|
+
Project-URL: Website, https://eulogik.github.io/TinyDoc-VLM/
|
|
11
13
|
Classifier: Development Status :: 4 - Beta
|
|
12
14
|
Classifier: Programming Language :: Python :: 3
|
|
13
15
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
@@ -28,6 +30,7 @@ Requires-Dist: optimum>=1.22.0; extra == "onnx"
|
|
|
28
30
|
Dynamic: author
|
|
29
31
|
Dynamic: author-email
|
|
30
32
|
Dynamic: classifier
|
|
33
|
+
Dynamic: description
|
|
31
34
|
Dynamic: description-content-type
|
|
32
35
|
Dynamic: home-page
|
|
33
36
|
Dynamic: project-url
|
|
@@ -35,3 +38,28 @@ Dynamic: provides-extra
|
|
|
35
38
|
Dynamic: requires-dist
|
|
36
39
|
Dynamic: requires-python
|
|
37
40
|
Dynamic: summary
|
|
41
|
+
|
|
42
|
+
# TinyDoc Python SDK
|
|
43
|
+
|
|
44
|
+
`pip install tinydoc`
|
|
45
|
+
|
|
46
|
+
Python SDK for [TinyDoc-VLM](https://github.com/eulogik/TinyDoc-VLM) — the world's smallest document-specialist VLM by [eulogik](https://eulogik.com).
|
|
47
|
+
|
|
48
|
+
```python
|
|
49
|
+
from PIL import Image
|
|
50
|
+
from tinydoc import TinyDocExtractor
|
|
51
|
+
|
|
52
|
+
extractor = TinyDocExtractor()
|
|
53
|
+
img = Image.open("invoice.png")
|
|
54
|
+
|
|
55
|
+
result = extractor.ask(img, "What is the total?")
|
|
56
|
+
print(result.answer)
|
|
57
|
+
|
|
58
|
+
result = extractor.extract(img, output_format="json")
|
|
59
|
+
print(result.fields)
|
|
60
|
+
|
|
61
|
+
result = extractor.extract_table(img)
|
|
62
|
+
print(result.markdown)
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
[Documentation](https://github.com/eulogik/TinyDoc-VLM#readme) · [HF Model](https://huggingface.co/eulogik/TinyDoc-VLM-256M) · [HF Space](https://huggingface.co/spaces/eulogik/TinyDoc-VLM) · [Issues](https://github.com/eulogik/TinyDoc-VLM/issues)
|
tinydoc-0.1.1/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# TinyDoc Python SDK
|
|
2
|
+
|
|
3
|
+
`pip install tinydoc`
|
|
4
|
+
|
|
5
|
+
Python SDK for [TinyDoc-VLM](https://github.com/eulogik/TinyDoc-VLM) — the world's smallest document-specialist VLM by [eulogik](https://eulogik.com).
|
|
6
|
+
|
|
7
|
+
```python
|
|
8
|
+
from PIL import Image
|
|
9
|
+
from tinydoc import TinyDocExtractor
|
|
10
|
+
|
|
11
|
+
extractor = TinyDocExtractor()
|
|
12
|
+
img = Image.open("invoice.png")
|
|
13
|
+
|
|
14
|
+
result = extractor.ask(img, "What is the total?")
|
|
15
|
+
print(result.answer)
|
|
16
|
+
|
|
17
|
+
result = extractor.extract(img, output_format="json")
|
|
18
|
+
print(result.fields)
|
|
19
|
+
|
|
20
|
+
result = extractor.extract_table(img)
|
|
21
|
+
print(result.markdown)
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[Documentation](https://github.com/eulogik/TinyDoc-VLM#readme) · [HF Model](https://huggingface.co/eulogik/TinyDoc-VLM-256M) · [HF Space](https://huggingface.co/spaces/eulogik/TinyDoc-VLM) · [Issues](https://github.com/eulogik/TinyDoc-VLM/issues)
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="tinydoc",
|
|
5
|
-
version="0.1.
|
|
5
|
+
version="0.1.1",
|
|
6
6
|
packages=find_packages(),
|
|
7
7
|
install_requires=[
|
|
8
8
|
"pydantic>=2.8.0",
|
|
@@ -23,8 +23,10 @@ setup(
|
|
|
23
23
|
url="https://github.com/eulogik/TinyDoc-VLM",
|
|
24
24
|
project_urls={
|
|
25
25
|
"HuggingFace Model": "https://huggingface.co/eulogik/TinyDoc-VLM-256M",
|
|
26
|
+
"HuggingFace Space": "https://huggingface.co/spaces/eulogik/TinyDoc-VLM",
|
|
26
27
|
"Bug Tracker": "https://github.com/eulogik/TinyDoc-VLM/issues",
|
|
27
28
|
"Documentation": "https://github.com/eulogik/TinyDoc-VLM#readme",
|
|
29
|
+
"Website": "https://eulogik.github.io/TinyDoc-VLM/",
|
|
28
30
|
},
|
|
29
31
|
classifiers=[
|
|
30
32
|
"Development Status :: 4 - Beta",
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tinydoc
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Python SDK for TinyDoc-VLM document understanding — the world's smallest document-specialist VLM
|
|
5
5
|
Home-page: https://github.com/eulogik/TinyDoc-VLM
|
|
6
6
|
Author: eulogik
|
|
7
7
|
Author-email: hello@eulogik.com
|
|
8
8
|
Project-URL: HuggingFace Model, https://huggingface.co/eulogik/TinyDoc-VLM-256M
|
|
9
|
+
Project-URL: HuggingFace Space, https://huggingface.co/spaces/eulogik/TinyDoc-VLM
|
|
9
10
|
Project-URL: Bug Tracker, https://github.com/eulogik/TinyDoc-VLM/issues
|
|
10
11
|
Project-URL: Documentation, https://github.com/eulogik/TinyDoc-VLM#readme
|
|
12
|
+
Project-URL: Website, https://eulogik.github.io/TinyDoc-VLM/
|
|
11
13
|
Classifier: Development Status :: 4 - Beta
|
|
12
14
|
Classifier: Programming Language :: Python :: 3
|
|
13
15
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
@@ -28,6 +30,7 @@ Requires-Dist: optimum>=1.22.0; extra == "onnx"
|
|
|
28
30
|
Dynamic: author
|
|
29
31
|
Dynamic: author-email
|
|
30
32
|
Dynamic: classifier
|
|
33
|
+
Dynamic: description
|
|
31
34
|
Dynamic: description-content-type
|
|
32
35
|
Dynamic: home-page
|
|
33
36
|
Dynamic: project-url
|
|
@@ -35,3 +38,28 @@ Dynamic: provides-extra
|
|
|
35
38
|
Dynamic: requires-dist
|
|
36
39
|
Dynamic: requires-python
|
|
37
40
|
Dynamic: summary
|
|
41
|
+
|
|
42
|
+
# TinyDoc Python SDK
|
|
43
|
+
|
|
44
|
+
`pip install tinydoc`
|
|
45
|
+
|
|
46
|
+
Python SDK for [TinyDoc-VLM](https://github.com/eulogik/TinyDoc-VLM) — the world's smallest document-specialist VLM by [eulogik](https://eulogik.com).
|
|
47
|
+
|
|
48
|
+
```python
|
|
49
|
+
from PIL import Image
|
|
50
|
+
from tinydoc import TinyDocExtractor
|
|
51
|
+
|
|
52
|
+
extractor = TinyDocExtractor()
|
|
53
|
+
img = Image.open("invoice.png")
|
|
54
|
+
|
|
55
|
+
result = extractor.ask(img, "What is the total?")
|
|
56
|
+
print(result.answer)
|
|
57
|
+
|
|
58
|
+
result = extractor.extract(img, output_format="json")
|
|
59
|
+
print(result.fields)
|
|
60
|
+
|
|
61
|
+
result = extractor.extract_table(img)
|
|
62
|
+
print(result.markdown)
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
[Documentation](https://github.com/eulogik/TinyDoc-VLM#readme) · [HF Model](https://huggingface.co/eulogik/TinyDoc-VLM-256M) · [HF Space](https://huggingface.co/spaces/eulogik/TinyDoc-VLM) · [Issues](https://github.com/eulogik/TinyDoc-VLM/issues)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|