mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-08 12:48:28 +00:00
Use default layout model in model_downloader default args
Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
This commit is contained in:
committed by
Nikos Livathinos
parent
a982995fb7
commit
e0482723c4
@@ -91,7 +91,7 @@ class LayoutModel(BasePageModel):
|
||||
local_dir: Optional[Path] = None,
|
||||
force: bool = False,
|
||||
progress: bool = False,
|
||||
layout_model_config: LayoutModelConfig = DOCLING_LAYOUT_V2,
|
||||
layout_model_config: LayoutModelConfig = LayoutOptions().model_spec, # use default
|
||||
) -> Path:
|
||||
return download_hf_model(
|
||||
repo_id=layout_model_config.repo_id,
|
||||
|
||||
@@ -47,7 +47,7 @@ def download_models(
|
||||
if with_layout:
|
||||
_log.info("Downloading layout model...")
|
||||
LayoutModel.download_models(
|
||||
local_dir=output_dir / DOCLING_LAYOUT_V2.model_repo_folder,
|
||||
local_dir=output_dir / LayoutOptions().model_spec.model_repo_folder,
|
||||
force=force,
|
||||
progress=progress,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user