Spaces:
Running
Running
robertselvam
commited on
Commit
•
25352c2
1
Parent(s):
4f70ac9
Update headings_extractor.py
Browse files- headings_extractor.py +1 -1
headings_extractor.py
CHANGED
@@ -49,7 +49,7 @@ class HeadingsExtractor:
|
|
49 |
# If an error occurs during the key-value extraction process, log the error
|
50 |
print(f"Error while extracting headings: {str(e)}")
|
51 |
|
52 |
-
def
|
53 |
|
54 |
"""
|
55 |
Extract text from a PDF document and extract headings from each page.
|
|
|
49 |
# If an error occurs during the key-value extraction process, log the error
|
50 |
print(f"Error while extracting headings: {str(e)}")
|
51 |
|
52 |
+
def extract_text(self,pdf_file_path: str) -> str:
|
53 |
|
54 |
"""
|
55 |
Extract text from a PDF document and extract headings from each page.
|