Spaces:
Runtime error
Runtime error
Updated helper.py (#1)
Browse files- Updated helper.py (5b70aa41ee662083a64399d0cdfe115d68e99cc0)
Co-authored-by: Chandan Kumar Nayak <[email protected]>
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 = "
|
| 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 |
|