Skip to content

Commit 774409e

Browse files
authored
doc: fix example snippet
In the section 'Using a non-default model', the argument name must be 'detection_model' instead of 'model'
1 parent 64870de commit 774409e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ from unstructured_inference.models.base import get_model
8383
from unstructured_inference.inference.layout import DocumentLayout
8484

8585
model = get_model("yolox")
86-
layout = DocumentLayout.from_file("sample-docs/layout-parser-paper.pdf", model=model)
86+
layout = DocumentLayout.from_file("sample-docs/layout-parser-paper.pdf", detection_model=model)
8787
```
8888

8989
### Using models from the layoutparser model zoo

0 commit comments

Comments
 (0)