use self.artifacts_path

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
Michele Dolfi 2024-10-14 09:03:49 +02:00
parent ab8f71511b
commit 08ab628e75

View File

@ -67,12 +67,14 @@ class StandardPdfPipeline(PaginatedPipeline):
ocr_model,
# Layout model
LayoutModel(
artifacts_path=artifacts_path / StandardPdfPipeline._layout_model_path
artifacts_path=self.artifacts_path
/ StandardPdfPipeline._layout_model_path
),
# Table structure model
TableStructureModel(
enabled=pipeline_options.do_table_structure,
artifacts_path=artifacts_path / StandardPdfPipeline._table_model_path,
artifacts_path=self.artifacts_path
/ StandardPdfPipeline._table_model_path,
options=pipeline_options.table_structure_options,
),
# Page assemble