Spaces:
Runtime error
Runtime error
Update InitialMarkups.py
Browse files- InitialMarkups.py +3 -3
InitialMarkups.py
CHANGED
|
@@ -2026,11 +2026,11 @@ def extract_section_under_header_tobebilled2marthe(multiplePDF_Paths):
|
|
| 2026 |
heading_norm = normalize_text(heading_to_search)
|
| 2027 |
paths_norm = [normalize_text(p) for p in paths[0]] if paths and paths[0] else []
|
| 2028 |
for page_num in range(heading_to_searchPageNum,len(doc)):
|
| 2029 |
-
print(heading_to_search)
|
| 2030 |
if paths[0].strip().lower() != currentgroupname.strip().lower():
|
| 2031 |
Alltexttobebilled+= paths[0] +'\n'
|
| 2032 |
currentgroupname=paths[0]
|
| 2033 |
-
print(paths[0])
|
| 2034 |
|
| 2035 |
|
| 2036 |
if page_num in toc_pages:
|
|
@@ -2379,7 +2379,7 @@ def extract_section_under_header_tobebilled2marthe(multiplePDF_Paths):
|
|
| 2379 |
|
| 2380 |
pdf_bytes = BytesIO()
|
| 2381 |
docHighlights.save(pdf_bytes)
|
| 2382 |
-
|
| 2383 |
return pdf_bytes.getvalue(), docHighlights , json_output, Alltexttobebilled , filenames
|
| 2384 |
|
| 2385 |
|
|
|
|
| 2026 |
heading_norm = normalize_text(heading_to_search)
|
| 2027 |
paths_norm = [normalize_text(p) for p in paths[0]] if paths and paths[0] else []
|
| 2028 |
for page_num in range(heading_to_searchPageNum,len(doc)):
|
| 2029 |
+
# print(heading_to_search)
|
| 2030 |
if paths[0].strip().lower() != currentgroupname.strip().lower():
|
| 2031 |
Alltexttobebilled+= paths[0] +'\n'
|
| 2032 |
currentgroupname=paths[0]
|
| 2033 |
+
# print(paths[0])
|
| 2034 |
|
| 2035 |
|
| 2036 |
if page_num in toc_pages:
|
|
|
|
| 2379 |
|
| 2380 |
pdf_bytes = BytesIO()
|
| 2381 |
docHighlights.save(pdf_bytes)
|
| 2382 |
+
print(filenames)
|
| 2383 |
return pdf_bytes.getvalue(), docHighlights , json_output, Alltexttobebilled , filenames
|
| 2384 |
|
| 2385 |
|