Vihang28 commited on
Commit
928ae64
·
1 Parent(s): 7718b7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -9,10 +9,9 @@ def ocr_model(filepath: str, languages: List[str]=None):
9
  pocr_model = PaddleOCR(use_angle_cls=True, lang='ch', use_gpu=False)
10
  result = pocr_model.ocr(filepath)
11
  state_txt = ""
12
- # for j in range(len(result)):
13
  for i in range(len(result[0])):
14
- # text1= result[0][i]
15
- # state_txt += str(text1)
16
  print('i=',i)
17
  return result
18
 
 
9
  pocr_model = PaddleOCR(use_angle_cls=True, lang='ch', use_gpu=False)
10
  result = pocr_model.ocr(filepath)
11
  state_txt = ""
 
12
  for i in range(len(result[0])):
13
+ text1= result[i]
14
+ state_txt += str(text1)
15
  print('i=',i)
16
  return result
17