Updated to docling-ibm-models v2.0.0

Signed-off-by: Maxim Lysak <mly@zurich.ibm.com>
This commit is contained in:
Maxim Lysak 2024-10-03 17:46:06 +02:00
parent 5d5e3ed0ac
commit 65ed754d37
3 changed files with 9 additions and 6 deletions

View File

@ -67,7 +67,10 @@ class DocumentConverter:
from huggingface_hub import snapshot_download from huggingface_hub import snapshot_download
download_path = snapshot_download( download_path = snapshot_download(
repo_id="ds4sd/docling-models", force_download=force, local_dir=local_dir repo_id="ds4sd/docling-models",
force_download=force,
local_dir=local_dir,
revision="v2.0.0",
) )
return Path(download_path) return Path(download_path)

8
poetry.lock generated
View File

@ -966,13 +966,13 @@ tabulate = ">=0.9.0,<0.10.0"
[[package]] [[package]]
name = "docling-ibm-models" name = "docling-ibm-models"
version = "1.4.0" version = "2.0.0"
description = "This package contains the AI models used by the Docling PDF conversion package" description = "This package contains the AI models used by the Docling PDF conversion package"
optional = false optional = false
python-versions = "<4.0,>=3.10" python-versions = "<4.0,>=3.10"
files = [ files = [
{file = "docling_ibm_models-1.4.0-py3-none-any.whl", hash = "sha256:4a39d17d3ba40e29944c361f8fa257481764819af2bd081d844ce9e3068ed93e"}, {file = "docling_ibm_models-2.0.0-py3-none-any.whl", hash = "sha256:ce40e70ef0dfd88bd80d4ee7c20b9d2f803b126f51ac171d9e38997942668dbc"},
{file = "docling_ibm_models-1.4.0.tar.gz", hash = "sha256:75de2a50f3b450af3d81c5729768964d1eb6392c0a247c3a10ce096e964acce3"}, {file = "docling_ibm_models-2.0.0.tar.gz", hash = "sha256:3db5e089ee138d2799acba21bfa8b6ac3e1cdbc2d50aeb608337934bdf24f69a"},
] ]
[package.dependencies] [package.dependencies]
@ -7124,4 +7124,4 @@ type = ["pytest-mypy"]
[metadata] [metadata]
lock-version = "2.0" lock-version = "2.0"
python-versions = "^3.10" python-versions = "^3.10"
content-hash = "cfe7eba754fee870d0ddcfcbcc0343419af8734af70719f8d0e2bd50a30876ea" content-hash = "7c5fb235944009b74193d045f36c1be2a8e168393012bf952541e6e7dea08072"

View File

@ -38,7 +38,7 @@ torchvision = [
python = "^3.10" python = "^3.10"
pydantic = "^2.0.0" pydantic = "^2.0.0"
docling-core = "^1.6.2" docling-core = "^1.6.2"
docling-ibm-models = "^1.4.0" docling-ibm-models = "^2.0.0"
deepsearch-glm = "^0.22.0" deepsearch-glm = "^0.22.0"
filetype = "^1.2.0" filetype = "^1.2.0"
pypdfium2 = "^4.30.0" pypdfium2 = "^4.30.0"