Update app.py
Browse files
app.py
CHANGED
|
@@ -1829,20 +1829,7 @@ if __name__ == "__main__":
|
|
| 1829 |
main()
|
| 1830 |
|
| 1831 |
|
| 1832 |
-
|
| 1833 |
-
r'date\s*:?\s*(\d{1,2}[/\-\.]\d{1,2}[/\-\.]\d{2,4})',
|
| 1834 |
-
r'(?:invoice|bill)\s*date\s*:?\s*(\d{1,2}[/\-\.]\d{1,2}[/\-\.]\d{2,4})',
|
| 1835 |
-
r'(?:^|\s)(\d{1,2}[/\-\.]\d{1,2}[/\-\.]\d{2,4})(?=\s|$)',
|
| 1836 |
-
r'(\d{4}[/\-\.]\d{1,2}[/\-\.]\d{1,2})',
|
| 1837 |
-
r'(\d{1,2}\s+(?:jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\s+\d{2,4})',
|
| 1838 |
-
],
|
| 1839 |
-
'quantity': [
|
| 1840 |
-
r'qty\s*:?\s*(\d+)',
|
| 1841 |
-
r'quantity\s*:?\s*(\d+)',
|
| 1842 |
-
r'(?:units?|pcs?|pieces?)\s*:?\s*(\d+)',
|
| 1843 |
-
r'(\d+)\s*(?:pcs?|units?|items?|pieces?)',
|
| 1844 |
-
]
|
| 1845 |
-
|
| 1846 |
text_lower = text.lower()
|
| 1847 |
|
| 1848 |
# Extract invoice number with multiple attempts
|
|
|
|
| 1829 |
main()
|
| 1830 |
|
| 1831 |
|
| 1832 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1833 |
text_lower = text.lower()
|
| 1834 |
|
| 1835 |
# Extract invoice number with multiple attempts
|