From 4966c086f1e5c22098265af126afc24a8c3d2504 Mon Sep 17 00:00:00 2001 From: Benjamin Torres Date: Mon, 10 Apr 2023 15:30:43 -0600 Subject: [PATCH] Corrected endpoints in README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 015bf896..8ad35d26 100644 --- a/README.md +++ b/README.md @@ -72,14 +72,14 @@ run the API locally, use `make start-app-local`. You can stop the API with `make The API will run at `http:/localhost:5000`. You can then `POST` a PDF file to the API endpoint to see its layout with the command: ``` -curl -X 'POST' 'http://localhost:5000/layout/pdf' -F 'file=@' | jq -C . | less -R +curl -X 'POST' 'http://localhost:5000/layout/default/pdf' -F 'file=@' | jq -C . | less -R ``` You can also choose the types of elements you want to return from the output of PDF parsing by passing a list of types to the `include_elems` parameter. For example, if you only want to return `Text` elements and `Title` elements, you can curl: ``` -curl -X 'POST' 'http://localhost:5000/layout/pdf' \ +curl -X 'POST' 'http://localhost:5000/layout/default/pdf' \ -F 'file=@' \ -F include_elems=Text \ -F include_elems=Title \ @@ -94,8 +94,8 @@ View the swagger documentation at `http://localhost:5000/docs`. For using the YoloX model the endpoints are: ``` -http://localhost:8000/layout_v1/pdf -http://localhost:8000/layout_v1/image +http://localhost:8000/layout/yolox/pdf +http://localhost:8000/layout/yolox/image ``` For example: ```