Spaces:
Runtime error
Runtime error
Update helpers/entity_extraction_helpers.py
Browse files
helpers/entity_extraction_helpers.py
CHANGED
@@ -48,7 +48,8 @@ def process_insurance_document(pii_instance, mongo_instance, openai_instance, oc
|
|
48 |
|
49 |
## OCR
|
50 |
try:
|
51 |
-
document_text = ocr_instance.extract_text_from_document(document_path)
|
|
|
52 |
ocr_status = "Completed"
|
53 |
process_status = "OCR Completed"
|
54 |
print(f"OCR complete")
|
|
|
48 |
|
49 |
## OCR
|
50 |
try:
|
51 |
+
#document_text = ocr_instance.extract_text_from_document(document_path)
|
52 |
+
document_text = ocr_instance.llama_parse_ocr(document_path)
|
53 |
ocr_status = "Completed"
|
54 |
process_status = "OCR Completed"
|
55 |
print(f"OCR complete")
|