From 6333a1f3be08fbc455346e751b7a53619308f01f Mon Sep 17 00:00:00 2001 From: f0ng Date: Tue, 29 Mar 2022 09:34:31 +0800 Subject: [PATCH] Update FAQ.md --- FAQ.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/FAQ.md b/FAQ.md index 0fd4494..df21a9b 100644 --- a/FAQ.md +++ b/FAQ.md @@ -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)) ```