Spaces:
Build error
Build error
debu das
commited on
Commit
·
5bc7ec0
1
Parent(s):
73c084f
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ async def pytess(cell_pil_img):
|
|
47 |
###paddleocr
|
48 |
paddle_output=' '
|
49 |
cell_cv_img=PIL_to_cv(cell_pil_img)
|
50 |
-
ocr = PaddleOCR(use_angle_cls=True,lang="ch") # need to run only once to download and load model into memory
|
51 |
result = ocr.ocr(cell_cv_img,cls=True)
|
52 |
for idx in range(len(result)):
|
53 |
res = result[idx]
|
|
|
47 |
###paddleocr
|
48 |
paddle_output=' '
|
49 |
cell_cv_img=PIL_to_cv(cell_pil_img)
|
50 |
+
ocr = PaddleOCR(use_angle_cls=True,use_space_char=True,lang="ch") # need to run only once to download and load model into memory
|
51 |
result = ocr.ocr(cell_cv_img,cls=True)
|
52 |
for idx in range(len(result)):
|
53 |
res = result[idx]
|