You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removed code related to the unstructured-inference api, as we are doing inference purely through the general unstructured API, and if we were to again serve an inference-only API, we wouldn't do it through this code, or store the code in this repo.
Copy file name to clipboardExpand all lines: README.md
-59Lines changed: 0 additions & 59 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,65 +91,6 @@ The `UnstructuredDetectronModel` class in `unstructured_inference.modelts.detect
91
91
92
92
Any detection model can be used for in the `unstructured_inference` pipeline by wrapping the model in the `UnstructuredObjectDetectionModel` class. To integrate with the `DocumentLayout` class, a subclass of `UnstructuredObjectDetectionModel` must have a `predict` method that accepts a `PIL.Image.Image` and returns a list of `LayoutElement`s, and an `initialize` method, which loads the model and prepares it for inference.
93
93
94
-
## API
95
-
96
-
To build the Docker container, run `make docker-build`. Note that Apple hardware with an M1 chip
97
-
has trouble building `Detectron2` on Docker and for best results you should build it on Linux. To
98
-
run the API locally, use `make start-app-local`. You can stop the API with `make stop-app-local`.
99
-
The API will run at `http:/localhost:5000`.
100
-
You can then `POST` a PDF file to the API endpoint to see its layout with the command:
0 commit comments