File size: 947 Bytes
0df5db6
 
 
 
 
 
 
f019a93
 
 
 
d83fbf1
 
c1744f6
 
93018f7
 
c1744f6
697c48f
d83fbf1
e8f70dd
 
 
d83fbf1
 
e636a5a
d83fbf1
e636a5a
 
 
d83fbf1
f019a93
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
tags:
- document-understading
- endpoints-template
library_name: generic
---

# Deploy a Space as inference Endpoint

_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_

This repository implements a custom container for 🤗 Inference Endpoints using a gradio space.

To use deploy this model as an Inference Endpoint, you have to select Custom as task and a custom image.

* CPU image: `philschmi/gradio-api:cpu`
* GPU image: `philschmi/gradio-api:gpu`
* PORT: `7860`
* ~Health Route: `/`~-> is default

Also make sure to add `server_name="0.0.0.0"` in your `launch()` call to make sure the request is correct proxied.


 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)
 
### Example API Request Payload

```json

```