Gopal2002 chandanzeon commited on
Commit
028c3e1
·
verified ·
1 Parent(s): 659e44c

Updated helper.py (#1)

Browse files

- Updated helper.py (5b70aa41ee662083a64399d0cdfe115d68e99cc0)


Co-authored-by: Chandan Kumar Nayak <[email protected]>

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