Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,69 @@ import difflib
|
|
| 3 |
|
| 4 |
# Define the knowledge base as a dictionary
|
| 5 |
knowledge_base = {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
"AM" : "Area Manager",
|
| 7 |
"ARM" : "Area Manager",
|
| 8 |
"TSO": "Territory Sales Officer",
|
|
|
|
| 3 |
|
| 4 |
# Define the knowledge base as a dictionary
|
| 5 |
knowledge_base = {
|
| 6 |
+
"POS": "Point of Sales",
|
| 7 |
+
"POSM": "Point of Sales Material",
|
| 8 |
+
"PMM": "Permanent Merchandising Material",
|
| 9 |
+
"PTR": "Point of Sales Material",
|
| 10 |
+
"QC": "Quality Complaint",
|
| 11 |
+
"RA": "Retail Assistant",
|
| 12 |
+
"RAO": "Regional Administration Officer",
|
| 13 |
+
"RM": "Regional Manager",
|
| 14 |
+
"RTM": "Route to Market",
|
| 15 |
+
"RTGS": "Real Time Gross Settlement",
|
| 16 |
+
"RC": "Regional Coordinator",
|
| 17 |
+
"RRO": "Regional Reporting Officer",
|
| 18 |
+
"SKU": "Stock Keeping Unit",
|
| 19 |
+
"SR": "Sales Representative",
|
| 20 |
+
"SUP": "Sales Supervisor",
|
| 21 |
+
"SM": "Sales Manager",
|
| 22 |
+
"S&OP": "Sales and Operation Plan",
|
| 23 |
+
"STT": "Sales to Trade",
|
| 24 |
+
"SCR": "Stock Coverage Ratio",
|
| 25 |
+
"SRATE": "Strike Rate",
|
| 26 |
+
"SLA": "Service Length Agreement",
|
| 27 |
+
"TSA": "Territory Sales Assistant",
|
| 28 |
+
"TSR": "Territory Sales Representative",
|
| 29 |
+
"TLP": "Trade Loyalty Programme",
|
| 30 |
+
"TC": "Trade Clusters",
|
| 31 |
+
"TPG": "Trade Planning Group",
|
| 32 |
+
"VBP": "Valued Business Partner",
|
| 33 |
+
"WC": "Working Capital",
|
| 34 |
+
"2/W": "Twice Per Week",
|
| 35 |
+
"3/W": "Thrice Per Week"
|
| 36 |
+
"ADS": "Average Daily Sales",
|
| 37 |
+
"AM": "Area Manager",
|
| 38 |
+
"ASR": "Assistant Sales Representative",
|
| 39 |
+
"ATM&D": "Activation and Trade Marketing and Distribution",
|
| 40 |
+
"BM": "Business Manager",
|
| 41 |
+
"BR": "Brand Representative",
|
| 42 |
+
"BA": "Brand Admirer",
|
| 43 |
+
"BCP": "Brand Call Productivity",
|
| 44 |
+
"BX": "Business Express",
|
| 45 |
+
"CC": "Central Coordinator",
|
| 46 |
+
"CSC": "Customer Service Centre",
|
| 47 |
+
"C&C": "Cash and Carry",
|
| 48 |
+
"CM": "Contract Merchandiser",
|
| 49 |
+
"CBC": "Corrugated Board Carton",
|
| 50 |
+
"CDR": "Consumer Dialogue Through Retailer",
|
| 51 |
+
"DSS": "Direct Store Service",
|
| 52 |
+
"D&D": "Damaged and Damp",
|
| 53 |
+
"DD": "Demand Draft",
|
| 54 |
+
"DDSS": "Daily Direct Store Service",
|
| 55 |
+
"DCC": "Discounted Cash and Carry",
|
| 56 |
+
"DOMA": "Distributor’s Operation and Management Audit",
|
| 57 |
+
"EFT": "Electronic Fund Transfer",
|
| 58 |
+
"FF": "Field Force",
|
| 59 |
+
"FIFO": "First In First Out",
|
| 60 |
+
"IOQ": "Ideal Order Quantity",
|
| 61 |
+
"IMP": "International Marketing Principle",
|
| 62 |
+
"ICA": "Inward Cartage Allowance",
|
| 63 |
+
"KPI": "Key Performance Indicators",
|
| 64 |
+
"MC": "Merchandising Coordinator",
|
| 65 |
+
"OHS": "On Hand Stock",
|
| 66 |
+
"OSD": "On Site Distribution Operation",
|
| 67 |
+
"OCA": "Outward Cartage Allowance",
|
| 68 |
+
"OOS": "Out of Stock",
|
| 69 |
"AM" : "Area Manager",
|
| 70 |
"ARM" : "Area Manager",
|
| 71 |
"TSO": "Territory Sales Officer",
|