Commit
•
f94917c
1
Parent(s):
1eb23d6
Update README.md
Browse files
README.md
CHANGED
@@ -22,6 +22,10 @@ Donut consists of a vision encoder (Swin Transformer) and a text decoder (BART).
|
|
22 |
|
23 |
Hugging Face Inference endpoints can directly work with binary data, this means that we can directly send our image from our document to the endpoint. We are going to use requests to send our requests. (make your you have it installed `pip install requests`)
|
24 |
|
|
|
|
|
|
|
|
|
25 |
load sample image
|
26 |
|
27 |
```bash
|
@@ -62,6 +66,8 @@ print(prediction)
|
|
62 |
# 'menuqty_cnt': '1'}}
|
63 |
```
|
64 |
|
|
|
|
|
65 |
**curl example**
|
66 |
|
67 |
```bash
|
|
|
22 |
|
23 |
Hugging Face Inference endpoints can directly work with binary data, this means that we can directly send our image from our document to the endpoint. We are going to use requests to send our requests. (make your you have it installed `pip install requests`)
|
24 |
|
25 |
+
![result](res.png)
|
26 |
+
|
27 |
+
## Send requests with Pyton
|
28 |
+
|
29 |
load sample image
|
30 |
|
31 |
```bash
|
|
|
66 |
# 'menuqty_cnt': '1'}}
|
67 |
```
|
68 |
|
69 |
+
|
70 |
+
|
71 |
**curl example**
|
72 |
|
73 |
```bash
|