chandanzeon commited on
Commit
5b70aa4
·
verified ·
1 Parent(s): 659e44c

Updated helper.py

Browse files

Normal Join in paddleocr instead of new line.

Files changed (1) hide show
  1. helper.py +1 -1
helper.py CHANGED
@@ -79,7 +79,7 @@ def process_docs(doc_path):
79
  documents2 = []
80
  for image in images_pdf:
81
  result = ocr.ocr(np.array(image), cls=True)
82
- text = "\n".join([line[1][0] for line in result[0]])
83
  documents2.append(text)
84
  docs2 = documents2
85
 
 
79
  documents2 = []
80
  for image in images_pdf:
81
  result = ocr.ocr(np.array(image), cls=True)
82
+ text = " ".join([line[1][0] for line in result[0]])
83
  documents2.append(text)
84
  docs2 = documents2
85