mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-08 20:58:11 +00:00
Ensure all models work only on valid pages (#158)
Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
This commit is contained in:
@@ -126,7 +126,7 @@ input_files = [
|
||||
]
|
||||
|
||||
# Directly pass list of files or streams to `convert_all`
|
||||
conv_results_iter = doc_converter.convert_all(input_files) # previously `convert_batch`
|
||||
conv_results_iter = doc_converter.convert_all(input_files) # previously `convert`
|
||||
|
||||
```
|
||||
Through the `raises_on_error` argument, you can also control if the conversion should raise exceptions when first
|
||||
@@ -135,7 +135,7 @@ By default, any error is immediately raised and the conversion aborts (previousl
|
||||
|
||||
```python
|
||||
...
|
||||
conv_results_iter = doc_converter.convert_all(input_files, raises_on_error=False) # previously `convert_batch`
|
||||
conv_results_iter = doc_converter.convert_all(input_files, raises_on_error=False) # previously `convert`
|
||||
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user