mirror of
https://github.com/DS4SD/docling.git
synced 2025-08-01 15:02:21 +00:00
Review fixes
Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
This commit is contained in:
parent
d2f114e5d6
commit
6832c5aeba
@ -135,7 +135,7 @@ class EasyOcrOptions(OcrOptions):
|
||||
kind: Literal["easyocr"] = "easyocr"
|
||||
lang: List[str] = ["fr", "de", "es", "en"]
|
||||
use_gpu: Annotated[
|
||||
int,
|
||||
bool,
|
||||
Field(
|
||||
deprecated="Deprecated field. Better to set the `accelerator_options.device` in `pipeline_options`. "
|
||||
"When `use_gpu and accelerator_options.device == AcceleratorDevice.CUDA` the GPU is used "
|
||||
|
@ -74,7 +74,7 @@ def main():
|
||||
pipeline_options.do_ocr = True
|
||||
pipeline_options.do_table_structure = True
|
||||
pipeline_options.table_structure_options.do_cell_matching = True
|
||||
pipeline_options.ocr_options.lang = "es"
|
||||
pipeline_options.ocr_options.lang = ["es"]
|
||||
pipeline_options.accelerator_options = AcceleratorOptions(
|
||||
num_threads=4, device=Device.AUTO
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user