Spaces:
Sleeping
Sleeping
Update ocr_engine.py
Browse files- ocr_engine.py +0 -2
ocr_engine.py
CHANGED
|
@@ -3,9 +3,7 @@ from pdf2image import convert_from_path
|
|
| 3 |
from PIL import Image
|
| 4 |
import os
|
| 5 |
import logging
|
| 6 |
-
|
| 7 |
logger = logging.getLogger("ocr_engine")
|
| 8 |
-
|
| 9 |
def extract_text_from_file(file_path: str) -> str:
|
| 10 |
"""
|
| 11 |
Extracts text from a PDF or Image file using Tesseract.
|
|
|
|
| 3 |
from PIL import Image
|
| 4 |
import os
|
| 5 |
import logging
|
|
|
|
| 6 |
logger = logging.getLogger("ocr_engine")
|
|
|
|
| 7 |
def extract_text_from_file(file_path: str) -> str:
|
| 8 |
"""
|
| 9 |
Extracts text from a PDF or Image file using Tesseract.
|