Use default layout model in model_downloader default args

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
This commit is contained in:
Christoph Auer 2025-07-23 08:51:07 +02:00
parent b552fec0c6
commit 14a7b3d086
2 changed files with 2 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class LayoutModel(BasePageModel):
local_dir: Optional[Path] = None,
force: bool = False,
progress: bool = False,
layout_model_config: LayoutModelConfig = LayoutOptions().model_spec, # use default
layout_model_config: LayoutModelConfig = LayoutOptions().model_spec, # use default
) -> Path:
return download_hf_model(
repo_id=layout_model_config.repo_id,

View File

@ -4,6 +4,7 @@ from typing import Optional
from docling.datamodel.layout_model_specs import DOCLING_LAYOUT_V2
from docling.datamodel.pipeline_options import (
LayoutOptions,
granite_picture_description,
smolvlm_picture_description,
)