Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -312,10 +312,9 @@ def run_ocr(uploaded_file):
|
|
| 312 |
if not (hdr and hdr.strip()):
|
| 313 |
hdr = ocr_zone(img_path, 0, he)
|
| 314 |
if hdr and hdr.strip():
|
| 315 |
-
parts.append(hdr.strip())
|
| 316 |
|
| 317 |
if page_md:
|
| 318 |
-
page_md = fix_account_number(page_md, hdr)
|
| 319 |
parts.append(close_unclosed_html(page_md))
|
| 320 |
|
| 321 |
# Footer extraction removed — MaaS API already captures all footer
|
|
|
|
| 312 |
if not (hdr and hdr.strip()):
|
| 313 |
hdr = ocr_zone(img_path, 0, he)
|
| 314 |
if hdr and hdr.strip():
|
| 315 |
+
parts.append(fix_account_number(hdr.strip()))
|
| 316 |
|
| 317 |
if page_md:
|
|
|
|
| 318 |
parts.append(close_unclosed_html(page_md))
|
| 319 |
|
| 320 |
# Footer extraction removed — MaaS API already captures all footer
|