Skip to content

Commit

Permalink
Merge pull request #194 from breezedeus/dev
Browse files Browse the repository at this point in the history
update docs
  • Loading branch information
breezedeus authored Aug 20, 2022
2 parents 0769c4d + 8ded012 commit 8aa2c1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ cnocr serve -p 8501
使用如下方式调用服务:

```python
import requests

image_fp = 'docs/examples/huochepiao.jpeg'
r = requests.post(
'http://0.0.0.0:8501/ocr', files={'image': (image_fp, open(image_fp, 'rb'), 'image/png')},
Expand Down
2 changes: 2 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ cnocr serve -p 8501
使用如下方式调用服务:

```python
import requests

image_fp = 'docs/examples/huochepiao.jpeg'
r = requests.post(
'http://0.0.0.0:8501/ocr', files={'image': (image_fp, open(image_fp, 'rb'), 'image/png')},
Expand Down

0 comments on commit 8aa2c1c

Please sign in to comment.