Spaces:
Runtime error
Runtime error
Updated helper.py
Browse filesNormal Join in paddleocr instead of new line.
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 |
|