Spaces:
Build error
Build error
debu das
commited on
Commit
·
9d4002a
1
Parent(s):
1a18272
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ async def pytess(cell_pil_img):
|
|
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]
|
54 |
for line in res:
|
@@ -59,7 +59,7 @@ async def pytess(cell_pil_img):
|
|
59 |
print("pytess_output@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@")
|
60 |
print(paddle_output)
|
61 |
print("paddleocr$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$")
|
62 |
-
return
|
63 |
|
64 |
# def super_res(pil_img):
|
65 |
# '''
|
|
|
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,use_space_char=True,cls=True)
|
52 |
for idx in range(len(result)):
|
53 |
res = result[idx]
|
54 |
for line in res:
|
|
|
59 |
print("pytess_output@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@")
|
60 |
print(paddle_output)
|
61 |
print("paddleocr$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$")
|
62 |
+
return paddle_output
|
63 |
|
64 |
# def super_res(pil_img):
|
65 |
# '''
|