jayanth-2005 commited on
Commit
1d6a470
·
verified ·
1 Parent(s): d30bb77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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|Invoice\s*Number|Inv\.?\s*No|Invoice\s*#|Bill\s*No)\s*[:#\-]?\s*([A-Za-z0-9\-\/]+)'
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 = []