remove unused file

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
Michele Dolfi 2025-02-05 18:21:16 +01:00
parent 1b8adb860a
commit f0a6932e40

View File

@ -1,19 +0,0 @@
from pathlib import Path
from docling.datamodel.base_models import InputFormat
from docling.datamodel.pipeline_options import EasyOcrOptions, PdfPipelineOptions
from docling.document_converter import DocumentConverter, PdfFormatOption
# The location of the local artifacts, e.g. from the `docling-tools models download` command
artifacts_path = Path("PATH TO MODELS") # <-- fill me
pipeline_options = PdfPipelineOptions(artifacts_path=artifacts_path)
pipeline_options.ocr_options = EasyOcrOptions(
download_enabled=False, model_storage_directory=str(artifacts_path / "EasyOcr")
)
doc_converter = DocumentConverter(
format_options={InputFormat.PDF: PdfFormatOption(pipeline_options=pipeline_options)}
)
result = doc_converter.convert("FILE TO CONVERT") # <-- fill me
print(result.document.export_to_markdown())