Moved artifacts_path for SmolDocling into vlm_options instead of global pipeline option

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>
This commit is contained in:
Maksym Lysak
2025-01-21 18:00:05 +01:00
parent f2751e11f9
commit 7c4ab5c716
3 changed files with 4 additions and 3 deletions

View File

@@ -22,7 +22,6 @@ pipeline_options = PdfPipelineOptions()
pipeline_options.generate_page_images = True
# If force_backend_text = True, text from backend will be used instead of generated text
pipeline_options.force_backend_text = False
pipeline_options.artifacts_path = "model_artifacts/SmolDocling_2.7_DT_0.7"
vlm_options = SmolDoclingOptions(
artifacts_path="model_artifacts/SmolDocling_2.7_DT_0.7",