nielsr HF staff commited on
Commit
3620d80
1 Parent(s): 7d2aaba
Files changed (1) hide show
  1. README.md +7 -10
README.md CHANGED
@@ -1,17 +1,17 @@
1
  ---
2
  tags:
3
- - document-understading
4
  - endpoints-template
5
  library_name: generic
6
  ---
7
 
8
  # Deploy a Space as inference Endpoint
9
 
10
- _This is a fork of the [naver-clova-ix/donut-base-finetuned-cord-v2](https://huggingface.co/spaces/naver-clova-ix/donut-base-finetuned-cord-v2) Space_
11
 
12
- This repository implements a custom container for 🤗 Inference Endpoints using a gradio space.
13
 
14
- To use deploy this model as an Inference Endpoint, you have to select Custom as task and a custom image.
15
 
16
  * CPU image: `philschmi/gradio-api:cpu`
17
  * GPU image: `philschmi/gradio-api:gpu`
@@ -20,12 +20,11 @@ To use deploy this model as an Inference Endpoint, you have to select Custom as
20
 
21
  Also make sure to add `server_name="0.0.0.0"` in your `launch()` call to make sure the request is correct proxied.
22
 
23
-
24
- If you want to use the UI with the inference Endpoint, you have to select as endpoint type `public` and add [auth through gradio](https://gradio.app/docs/#launch-header)
25
 
26
  ### Example API Request Payload
27
 
28
- get a image you want to use, e.g.
29
 
30
  ```bash
31
  !wget https://datasets-server.huggingface.co/assets/naver-clova-ix/cord-v2/--/naver-clova-ix--cord-v2/train/0/image/image.jpg
@@ -58,6 +57,4 @@ def predict(path_to_image: str = None):
58
 
59
  prediction = predict(path_to_image="image.jpg")
60
 
61
- ```
62
-
63
-
 
1
  ---
2
  tags:
3
+ - document-understanding
4
  - endpoints-template
5
  library_name: generic
6
  ---
7
 
8
  # Deploy a Space as inference Endpoint
9
 
10
+ _This is a fork of the [naver-clova-ix/donut-base-finetuned-cord-v2](https://huggingface.co/spaces/naver-clova-ix/donut-base-finetuned-cord-v2) Space.
11
 
12
+ This repository implements a custom container for 🤗 Inference Endpoints using a Gradio space.
13
 
14
+ To deploy this model as an Inference Endpoint, you have to select Custom as task and a custom image.
15
 
16
  * CPU image: `philschmi/gradio-api:cpu`
17
  * GPU image: `philschmi/gradio-api:gpu`
 
20
 
21
  Also make sure to add `server_name="0.0.0.0"` in your `launch()` call to make sure the request is correct proxied.
22
 
23
+ If you want to use the UI with the Inference Endpoint, you have to select as endpoint type `public` and add [auth through gradio](https://gradio.app/docs/#launch-header)
 
24
 
25
  ### Example API Request Payload
26
 
27
+ Get an image you want to use, e.g.
28
 
29
  ```bash
30
  !wget https://datasets-server.huggingface.co/assets/naver-clova-ix/cord-v2/--/naver-clova-ix--cord-v2/train/0/image/image.jpg
 
57
 
58
  prediction = predict(path_to_image="image.jpg")
59
 
60
+ ```