Spaces:
Runtime error
Runtime error
Update InitialMarkups.py
Browse files- InitialMarkups.py +2 -2
InitialMarkups.py
CHANGED
|
@@ -1997,7 +1997,7 @@ def extract_section_under_header_tobebilled2(pdf_path):
|
|
| 1997 |
|
| 1998 |
|
| 1999 |
|
| 2000 |
-
def
|
| 2001 |
# keywordstoSkip=["installation", "execution", "miscellaneous items", "workmanship", "testing", "labeling"]
|
| 2002 |
filenames=[]
|
| 2003 |
keywords = {'installation', 'execution', 'miscellaneous items', 'workmanship', 'testing', 'labeling'}
|
|
@@ -2184,7 +2184,7 @@ def extract_section_under_header_tobebilledMultiplePDFSmarthe(multiplePDF_Paths)
|
|
| 2184 |
# and span['size'] >= subsubheaderFontSize
|
| 2185 |
and span['size'] < mainHeaderFontSize)
|
| 2186 |
]
|
| 2187 |
-
if header_spans and stringtowrite.startswith('To')
|
| 2188 |
collecting = True
|
| 2189 |
# if stringtowrite=='To be billed':
|
| 2190 |
# Alltexttobebilled+='\n'
|
|
|
|
| 1997 |
|
| 1998 |
|
| 1999 |
|
| 2000 |
+
def extract_section_under_header_tobebilledMultiplePDFS(multiplePDF_Paths):
|
| 2001 |
# keywordstoSkip=["installation", "execution", "miscellaneous items", "workmanship", "testing", "labeling"]
|
| 2002 |
filenames=[]
|
| 2003 |
keywords = {'installation', 'execution', 'miscellaneous items', 'workmanship', 'testing', 'labeling'}
|
|
|
|
| 2184 |
# and span['size'] >= subsubheaderFontSize
|
| 2185 |
and span['size'] < mainHeaderFontSize)
|
| 2186 |
]
|
| 2187 |
+
if header_spans and stringtowrite.startswith('To') :
|
| 2188 |
collecting = True
|
| 2189 |
# if stringtowrite=='To be billed':
|
| 2190 |
# Alltexttobebilled+='\n'
|