docs: fix parameter in usage.md (#332)
Signed-off-by: Carl Senze <carl.senze@aleph-alpha.com> Co-authored-by: Carl Senze <carl.senze@aleph-alpha.com>
This commit is contained in:
parent
8533039b0c
commit
835e077b02
@ -165,7 +165,7 @@ from docling.datamodel.base_models import DocumentStream
|
||||
from docling.document_converter import DocumentConverter
|
||||
|
||||
buf = BytesIO(your_binary_stream)
|
||||
source = DocumentStream(filename="my_doc.pdf", stream=buf)
|
||||
source = DocumentStream(name="my_doc.pdf", stream=buf)
|
||||
converter = DocumentConverter()
|
||||
result = converter.convert(source)
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user