Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -81,7 +81,7 @@ def extract_invoices(file):
|
|
| 81 |
if t:
|
| 82 |
text += t + "\n"
|
| 83 |
|
| 84 |
-
invoice_pattern = r'(?:Invoice\s*No|
|
| 85 |
invoice_matches = list(re.finditer(invoice_pattern, text, re.IGNORECASE))
|
| 86 |
|
| 87 |
rows = []
|
|
|
|
| 81 |
if t:
|
| 82 |
text += t + "\n"
|
| 83 |
|
| 84 |
+
invoice_pattern = r'(?:Invoice\s*(?:No|Number)|Inv\.?\s*No|Invoice\s*#|Bill\s*(?:No|Number)|Bill\s*of\s*Supply\s*(?:No|Number)|BOS\s*No|Doc\s*No|Document\s*No|Reference\s*No)\s*[:#\-]?\s*\n?\s*([A-Za-z0-9\-\/]+)'
|
| 85 |
invoice_matches = list(re.finditer(invoice_pattern, text, re.IGNORECASE))
|
| 86 |
|
| 87 |
rows = []
|