mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-08 20:58:11 +00:00
docs: support running examples from root or subfolder (#1816)
support running examples from root or subfolder Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
3
docs/examples/pictures_description_api.py
vendored
3
docs/examples/pictures_description_api.py
vendored
@@ -96,7 +96,8 @@ def watsonx_vlm_options():
|
||||
def main():
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
|
||||
input_doc_path = Path("./tests/data/pdf/2206.01062.pdf")
|
||||
data_folder = Path(__file__).parent / "../../tests/data"
|
||||
input_doc_path = data_folder / "pdf/2206.01062.pdf"
|
||||
|
||||
pipeline_options = PdfPipelineOptions(
|
||||
enable_remote_services=True # <-- this is required!
|
||||
|
||||
Reference in New Issue
Block a user