Skip to content

Commit

Permalink
Update FAQ.md
Browse files Browse the repository at this point in the history
  • Loading branch information
f0ng authored Mar 29, 2022
1 parent cdf4b78 commit 6333a1f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ Content-Length: 8332
# 4.报错 `Typeerror: classification() got an unexpected keyword argument img_base64`

#### #4 感谢ekko-zhao师傅反馈
#### 修改`codereg.py`源码如下
#### 修改`codereg.py`源码如下(记得`import base64`
```python
async def handle c(request) :
img_base64 = await request.text ()
img_bytes = base64.b64decode (img_ base64)
async def handle_cb(request) :
img_base64 = await request.text()
img_bytes = base64.b64decode(img_ base64)
return web. Response(text=ocr.classification(img_bytes))
```

0 comments on commit 6333a1f

Please sign in to comment.