anujakkulkarni commited on
Commit
7fe009a
·
verified ·
1 Parent(s): 221a9b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -23,7 +23,7 @@ app.add_middleware(
23
  # ---------- Fixed Tender Template ----------
24
  TEMPLATE_COLUMNS = [
25
  "id", "tender_id", "tender_code", "customer_id", "customer_name", "fy", "category", "code",
26
- "current_brand_description", "generic_name", "annual_volume_qty", "quotation Price",
27
  ]
28
 
29
  # ---------- Normalization ----------
@@ -59,7 +59,7 @@ SYNONYMS: Dict[str, List[str]] = {
59
  "composition", "salt", "api", "active ingredient"
60
  ],
61
  "current_brand_description": ["brand name", "brand", "trade name", "product", "product name", "item", "item name", "drug name"],
62
- "annual_volume_qty": ["potential annual volume", "annual volume qty", "annual qty", "annual volume", "qty", "quantity", "rfq qty", "order qty"],
63
  "quotation Price": ["offer price(unit wise) without taxes in rs", "offer price", "unit price", "quoted rate", "rate", "basic rate", "price per unit", "price"],
64
  "code": ["item code", "product code", "sku", "catalogue no", "catalog no", "catalog number", "code"],
65
  "customer_name": ["customer name", "hospital name", "hospital", "buyer", "consignee", "institution", "institute", "organisation", "organization"],
@@ -68,6 +68,7 @@ SYNONYMS: Dict[str, List[str]] = {
68
  "tender_id": ["tender id", "rfq id", "enquiry id"],
69
  "tender_code": ["tender code", "rfq code", "enquiry code", "tender no", "tender number", "rfq no", "rfq number"],
70
  "category": ["category", "schedule", "section", "chapter", "dept"],
 
71
 
72
  # Product master detection (support your original schema)
73
  "__product_master_molecule__": ["molecule", "molecule name", "generic", "generic name", "api", "active ingredient", "composition", "salt"],
 
23
  # ---------- Fixed Tender Template ----------
24
  TEMPLATE_COLUMNS = [
25
  "id", "tender_id", "tender_code", "customer_id", "customer_name", "fy", "category", "code",
26
+ "current_brand_description", "generic_name", "annual_volume_qty", "quotation Price", "dosage form"
27
  ]
28
 
29
  # ---------- Normalization ----------
 
59
  "composition", "salt", "api", "active ingredient"
60
  ],
61
  "current_brand_description": ["brand name", "brand", "trade name", "product", "product name", "item", "item name", "drug name"],
62
+ "annual_volume_qty": ["potential annual volume", "annual volume qty", "annual qty", "annual volume", "qty", "quantity", "rfq qty", "order qty", "excepted annual consumption qty_total", "annual consumption"],
63
  "quotation Price": ["offer price(unit wise) without taxes in rs", "offer price", "unit price", "quoted rate", "rate", "basic rate", "price per unit", "price"],
64
  "code": ["item code", "product code", "sku", "catalogue no", "catalog no", "catalog number", "code"],
65
  "customer_name": ["customer name", "hospital name", "hospital", "buyer", "consignee", "institution", "institute", "organisation", "organization"],
 
68
  "tender_id": ["tender id", "rfq id", "enquiry id"],
69
  "tender_code": ["tender code", "rfq code", "enquiry code", "tender no", "tender number", "rfq no", "rfq number"],
70
  "category": ["category", "schedule", "section", "chapter", "dept"],
71
+ "dosage form": ["dosage form", "form", "drug form", "pharmaceutical form", "presentation", "type", "medicine type"],
72
 
73
  # Product master detection (support your original schema)
74
  "__product_master_molecule__": ["molecule", "molecule name", "generic", "generic name", "api", "active ingredient", "composition", "salt"],