mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-26 20:14:47 +00:00
Unload doc backend
Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
This commit is contained in:
parent
988db91bff
commit
01066f0b6e
@ -527,6 +527,9 @@ class ThreadedStandardPdfPipeline(BasePipeline):
|
|||||||
for st in ctx.stages:
|
for st in ctx.stages:
|
||||||
st.stop()
|
st.stop()
|
||||||
ctx.output_queue.close()
|
ctx.output_queue.close()
|
||||||
|
|
||||||
|
if conv_res.input._backend is not None:
|
||||||
|
conv_res.input._backend.unload()
|
||||||
return conv_res
|
return conv_res
|
||||||
|
|
||||||
# -------------------------------------------------------------- feed_pages
|
# -------------------------------------------------------------- feed_pages
|
||||||
|
@ -18,7 +18,7 @@ from docling.pipeline.threaded_standard_pdf_pipeline import ThreadedStandardPdfP
|
|||||||
|
|
||||||
def test_threaded_pipeline_multiple_documents():
|
def test_threaded_pipeline_multiple_documents():
|
||||||
"""Test threaded pipeline with multiple documents and compare with standard pipeline"""
|
"""Test threaded pipeline with multiple documents and compare with standard pipeline"""
|
||||||
test_files = [
|
test_files = [str(f) for f in Path("tests/data/pdf").rglob("*.pdf")] or [
|
||||||
"tests/data/pdf/2203.01017v2.pdf",
|
"tests/data/pdf/2203.01017v2.pdf",
|
||||||
"tests/data/pdf/2206.01062.pdf",
|
"tests/data/pdf/2206.01062.pdf",
|
||||||
"tests/data/pdf/2305.03393v1.pdf",
|
"tests/data/pdf/2305.03393v1.pdf",
|
||||||
|
Loading…
Reference in New Issue
Block a user