SarowarSaurav commited on
Commit
7cc5dc2
·
verified ·
1 Parent(s): f048dbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +394 -1
app.py CHANGED
@@ -276,8 +276,401 @@ knowledge_base = {
276
  "GTR": "Global Travel and Retail",
277
  "GUI": "Graphical User Interface",
278
  "GWD": "Gross Weighted Distribution",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
279
 
280
-
281
  }
282
 
283
  # Define the Gradio interface function
 
276
  "GTR": "Global Travel and Retail",
277
  "GUI": "Graphical User Interface",
278
  "GWD": "Gross Weighted Distribution",
279
+ "W10": "Windows 10",
280
+ "WAP": "Weighted Average Price",
281
+ "WAR": "Warehouse Receipt",
282
+ "WBS": "Work Breakdown Structure",
283
+ "WCO": "World Customs Organization",
284
+ "WEL": "Workplace Exposure Limit",
285
+ "WER": "Western Europe",
286
+ "WHA": "World Health Assembly",
287
+ "WHO": "World Health Organisation",
288
+ "WIC": "World Investment Co Ltd",
289
+ "WITCO": "West Indian Tobacco Company",
290
+ "WLB": "Work Life Balance",
291
+ "WMS": "Warehouse Management System / Wrapping Materials Specifications / Wrapping Materials Stock",
292
+ "WNTD": "World No Tobacco Day",
293
+ "WTL": "Water Treated Lamina",
294
+ "WTO": "World Trade Organization",
295
+ "WTS": "Water Treated Stem",
296
+ "WWTP": "Wastewater Treatment Plant",
297
+ "YIU": "Yield in Use",
298
+ "YoY": "Year on Year",
299
+ "YSP": "Youth Smoking Prevention",
300
+ "YTD": "Year To Date",
301
+ "YTG": "Year To Go",
302
+ "YV": "Your Voice Survey,
303
+ "TOR": "Terms of Reference",
304
+ "TP": "Trading Profit / Tobacco Product Directive",
305
+ "TPM": "Total Particulate Matter",
306
+ "TPP": "Trans Pacific Partnership",
307
+ "TQM": "Total Quality Management",
308
+ "TRM": "Talent Review Meetings",
309
+ "TSG": "Tobacco Strategy Group (BAT Industries)",
310
+ "TSP": "Total System Profit",
311
+ "TT": "Top Team",
312
+ "TTL": "Through-the-line (communication)",
313
+ "TUSS": "Tobacco Utilisation Sourcing & Supply",
314
+ "UAT": "User Acceptance Testing",
315
+ "UGM": "User Group Meeting",
316
+ "UKIB": "UK International brand",
317
+ "ULow": "Ultra Low",
318
+ "ULP": "Ultra Low Price",
319
+ "UNSPS": "Universal Standards Products Service Classification",
320
+ "UOM": "Unit Of Measure",
321
+ "UOP": "Underlying Operating Profit",
322
+ "USIB": "US International Brand",
323
+ "VA": "Virginia",
324
+ "VAT": "Value Added Tax (or sales tax)",
325
+ "VFM": "Value For Money",
326
+ "VMI": "Vendor Managed Inventory",
327
+ "Vs": "Versus",
328
+ "T&A": "Technical & Advisory Fee",
329
+ "T&T": "Track and Trace",
330
+ "TaO": "Target Operating Model and OneSAP / TaO Business Intelligence / TaO Business Objects / TaO Business Planning and Consolidation / TaO Central Process Scheduling / TaO ERP Central Component / TaO Enterprise Infrastructure Backbone / TaO Enterprise Search / TaO System Landscape Directory",
331
+ "TCC": "Tobacco Control Community",
332
+ "TCO": "Total Cost Ownership",
333
+ "TIH": "Tactical Inventory Hub",
334
+ "TLA": "Three Letter Acronym",
335
+ "TLDW": "Team Leaders Development Workshop",
336
+ "TM": "Time Management (SAP)",
337
+ "TM&D": "Trade Marketing & Distribution / Trade Marketing and Distribution",
338
+ "TMA": "Tobacco Manufacturer's Association",
339
+ "TMC": "Tailor Made Cigarettes / Trade Marketing Communication",
340
+ "TMD": "Trade Marketing Diversification",
341
+ "TMU": "Trade Marketing Universe",
342
+ "TMVF": "Trade Mark Verification",
343
+ "TOM": "Target Operating Model",
344
+ "TOP": "Type Of Part",
345
+ "SH": "Section Head",
346
+ "SICA": "Central American Integration System",
347
+ "SIDS": "Screening Information Data Sets",
348
+ "SIECA": "Secretariat for Economic Integration for Central America",
349
+ "SIEF": "Substance Information Exchange Forum",
350
+ "SIG": "Strategic Innovations Group",
351
+ "SIMS": "Substance Inventory Management System",
352
+ "SIS": "Shipments Information System",
353
+ "SITA": "Worldwide telecommunications link",
354
+ "SITPRO": "Simplification of Internal Trade Procedures",
355
+ "SKU": "Stock Keeping Unit",
356
+ "SL": "Storage Location / Super Long",
357
+ "SLA": "Service Level Agreement / Strategic Leadership Agenda",
358
+ "SM@RT": "Standardised Materials At Realistic Transfer Prices",
359
+ "SMC": "Stakeholder Mapping & Classification",
360
+ "SMD": "Secondary Manufacturing Department",
361
+ "SMP": "Shared Materials Planning / Strategic Marketing Programme",
362
+ "SOB": "Share of brand / Source of Business / Standards of Business Contact",
363
+ "SOC": "Share of category",
364
+ "SoD": "Segregation of Duties",
365
+ "SODA": "Service Operation Desk Application",
366
+ "SoDA": "Statement of Delegated Authorities",
367
+ "SoM": "Share of Market",
368
+ "SOPE": "Sales and Operations Planning Executive",
369
+ "SOS": "Share of Sales",
370
+ "SOV": "Share of Voice",
371
+ "SP": "Supply Planning",
372
+ "SPC": "Statistical Process Control",
373
+ "SPD&S": "Strategic Product Development & Support",
374
+ "SPI": "Strategy Planning Insights",
375
+ "SPLY": "Same Period Last Year",
376
+ "SPM": "Sales Promotional Merchandise",
377
+ "SPOC": "Single Point Of Contact",
378
+ "SPU": "Secondary Packing Unit",
379
+ "SQ": "Superior Quality",
380
+ "SQP": "Supplier Quality Partnership",
381
+ "SREM": "Senior Regional Export Manager",
382
+ "SRF": "Suppliers Request Forms",
383
+ "SRG": "Scientific Research Group",
384
+ "SRM": "Specified Risk Material / Supplier Relationship Management",
385
+ "SRO": "Senior Responsible Owner",
386
+ "SRTP": "Social Responsibility in Tobacco Production",
387
+ "RCCP": "Rough Cut Capacity Plan",
388
+ "RCD": "Rebates Commission and Discounts",
389
+ "RCP": "Retail Classification Platform",
390
+ "RD": "Regional Director",
391
+ "RDF": "Retail Disposition Funnel",
392
+ "REC": "Research Executive Council",
393
+ "RFC": "Request For Change",
394
+ "RLT": "Regional Leadership Team",
395
+ "RM": "Records Management",
396
+ "RML": "Retail Media Landscape",
397
+ "RMM": "Risk Management Measure",
398
+ "ROCE": "Return on Capital Employed",
399
+ "RONA": "Return on Net Assets",
400
+ "ROSE": "Return on Shareholders' Equity",
401
+ "ROY": "Return of Investment",
402
+ "RPC": "Regional Product Centre",
403
+ "RPN": "Risk Priority Number",
404
+ "RQI": "Retail Quality Index",
405
+ "RRP": "Recommended Retail Price / Reduced Risk Product",
406
+ "RTM": "Route to Market",
407
+ "RYO": "Roll Your Own Tobacco",
408
+ "S&OP": "Sales & Operations Planning",
409
+ "S90": "A cigarette reservoir between the maker and the packer",
410
+ "SAM": "Strategic Account Management / Strategic Assessment Management",
411
+ "SAP GRC": "SAP Governance, Risk and Compliance",
412
+ "SAP II": "SAP Information Interchange",
413
+ "SAP PI": "SAP Process Integration / Interfaces between SAP ECC and other applications",
414
+ "SAP": "Systems Administration Platform / Systems Application Programme / Systems, Applications & Prod",
415
+ "SBS": "Strategic Business System",
416
+ "SC": "Soft Cup / Supply Chain Champions",
417
+ "SCA": "Supply Chain Academy",
418
+ "SCAM": "Supply Chain Above Market",
419
+ "SCC": "Supply Chain Collaborator",
420
+ "SCCSE": "Supply Chain Customer Service Excellence",
421
+ "SCDT": "Supply Chain Drive Team",
422
+ "SCEE": "Supply Chain Eastern Europe",
423
+ "SCEM": "Supply Chain Event Management",
424
+ "SCM": "Solution Centre Managers / Supply Chain Management",
425
+ "SCOC": "Suppliers Code of Conduct",
426
+ "SCOR": "Supply Chain Operations Reference Model",
427
+ "SCS": "Supply Chain Strategy / Supply Chain Synchronisation",
428
+ "SCSC": "Supply Chain Service Centre",
429
+ "SCWE": "Supply Chain Western Europe",
430
+ "SD": "Sales Distribution",
431
+ "SDG": "Strategic Design Group",
432
+ "SDM": "Service Delivery Manager",
433
+ "SDS": "Safety Data Sheet",
434
+ "SEM": "Strategic Enterprise Management",
435
+ "SGM": "Steering Group Meeting",
436
+ "P&E": "Pricing & Excise",
437
+ "P&L": "Profit and Loss",
438
+ "P1": "Incident Priority 1",
439
+ "P2": "Incident Priority 2",
440
+ "P2P": "Procure to Pay",
441
+ "P3": "Incident Priority 3",
442
+ "P4": "Incident Priority 4",
443
+ "PA": "Personal Administration (SAP)",
444
+ "PACE": "Performance Appraisal and Career Evaluation",
445
+ "PAG": "Programa de Alta Gerencia",
446
+ "PAT": "Profit After Tax",
447
+ "PBIT": "Profit before interest and tax",
448
+ "PBS": "Product Breakdown Structure",
449
+ "PBT": "Profit Before Tax",
450
+ "PCF": "People Capability Framework",
451
+ "PCR": "Product Complexity Reduction",
452
+ "PCS": "Pack Collector Study",
453
+ "PD": "Pressure Drop",
454
+ "PDC": "Product Development Committee",
455
+ "PDPC": "Primary Delivered Product Cost",
456
+ "PDSG": "Product Development Strategy Group",
457
+ "PDT": "Product Development Team",
458
+ "PI&T": "Product Integrity & Traceability",
459
+ "PID": "Project Initiation Document",
460
+ "PIR": "Post Implementation Review",
461
+ "PIT": "Point In Time",
462
+ "PLC": "Programmable logic Controller",
463
+ "PLM": "Product Life Management",
464
+ "PLP": "Product Line Profitability",
465
+ "PM": "Prime Minister",
466
+ "PMC": "Proceso de Mejoramiento Contínuo",
467
+ "PMD": "Primary Manufacturing Department",
468
+ "PMI": "Phillip Morris International",
469
+ "PMO": "Programme Management Office",
470
+ "PMP": "People Management Programme",
471
+ "PMS": "Planned Maintenance System",
472
+ "PO": "Performance Objectives / Purchase Order",
473
+ "POD": "Proof of Delivery",
474
+ "POP": "Point of Purchase",
475
+ "POS": "Point of Sale",
476
+ "PP": "Plain Packaging / Production Plan",
477
+ "PP&D": "Production Planning and Development",
478
+ "PPA": "Psychophysical Analysis",
479
+ "PPB": "Productivity Portfolio Board",
480
+ "PPR": "Post Project Review",
481
+ "PPS": "Public Place Smoking",
482
+ "PQI": "Product Quality Index",
483
+ "PQRS": "Physical Quality Rating System",
484
+ "Pre-SOP": "Pre Sales & Operations Planning",
485
+ "PRINCE": "Projects IN Controlled Environment",
486
+ "PRP": "Profit Related Pay",
487
+ "PSA": "Partial Scope Agreement / Product Space Appropriation",
488
+ "PSC": "Primary Supply Chain",
489
+ "PSG": "Product Steering Group",
490
+ "PSM": "Product Space Mapping",
491
+ "PSR": "Packed Store Room",
492
+ "PSU": "Production Services Unit",
493
+ "Pts": "Percentage points",
494
+ "PTSG": "Process Technology Steering Group",
495
+ "QA": "Quality Assurance",
496
+ "QBR": "Quarterly Business Review",
497
+ "QI": "Quality Inspection",
498
+ "QMR": "Quarterly Marketing Report",
499
+ "QPR": "Quarterly Performance Review / Quarterly Profit Review",
500
+ "QS": "Qualitative Studies",
501
+ "QTP": "Quality Through People",
502
+ "QUAIL": "Quality In Leaf",
503
+ "Quantum": "TM&D information system",
504
+ "MRP": "Materials Requirements Planning / Materials Resource Planning",
505
+ "MSD": "Management Services Department",
506
+ "MSDS": "Materials Safety Data Sheet",
507
+ "MSP": "Managing Successful Programmes / Market Share Points",
508
+ "MT": "Management Trainee / Materials Testing",
509
+ "MTO": "Make To Order",
510
+ "MTS": "Make To Stock",
511
+ "MXS": "Marketing Excellence Series",
512
+ "MYO": "Make Your Own",
513
+ "MYR": "Mid-Year Results / Mid-Year Review",
514
+ "NAMAS": "National Measurement Accreditation Service",
515
+ "NBD": "New Business Development",
516
+ "NCD": "Non Communicable Diseases",
517
+ "NFDPM": "Nicotine Free Dry Particulate Matter",
518
+ "NGO": "Non-Governmental Organisation",
519
+ "NGP": "New Generation Products",
520
+ "NMG": "New Marketing Guidelines",
521
+ "NND": "Net Net Density",
522
+ "NP": "Net Permeability",
523
+ "NPD": "New Product Development",
524
+ "NPI": "New Product Innovation / New Product Introduction",
525
+ "NQ": "Normal Quality",
526
+ "NTO": "Net Turnover",
527
+ "O2C": "Order To Cash",
528
+ "O365": "Office 365",
529
+ "OA": "Opportunity Analysis",
530
+ "OBS": "Opportunistic Business Simulation",
531
+ "OCA": "Out of Home (Advertising)",
532
+ "OD": "Organisational Development",
533
+ "OD(M)S": "One Day (Material) Store",
534
+ "ODG": "Operational Design Group",
535
+ "ODP": "Operational Demand Planning",
536
+ "OE": "Order Estimate",
537
+ "OEE": "Overall Equipment Effectiveness",
538
+ "OEM": "Original Equipment Manufacturer",
539
+ "OIE": "Other Income & Expense",
540
+ "OLT": "Operations Leadership Team",
541
+ "OM": "Operating Model / Organisational Management (Modulo SAP)",
542
+ "OOH": "Out Of Home",
543
+ "OOS": "Out Of Stock",
544
+ "OP": "Operating Profit",
545
+ "OPB": "Operations Portfolio Board",
546
+ "OpCo": "Operating Company",
547
+ "OpEx": "Operating Expenditure",
548
+ "Ops": "Operations",
549
+ "OR": "Oriental",
550
+ "OSP": "Operational Supply Planning",
551
+ "OTIF": "On Time In Full",
552
+ "OTP": "Other Tobacco Products",
553
+ "OTS": "Opportunity to See",
554
+ "L&B": "Lambert & Butler",
555
+ "L&D": "Liggett & Myers / Learning & Development",
556
+ "LAN": "Local Area Network",
557
+ "LAT": "Local Area Team",
558
+ "LC": "Leadership Capabilities",
559
+ "LCP": "Local Cycle Plan",
560
+ "LDP": "Local Demand Plan",
561
+ "LE": "Latest Estimate / Limited Edition",
562
+ "LEO": "Legal Entity Object",
563
+ "LEP": "Limited Edition Pack",
564
+ "LEX": "Legal and External Affairs",
565
+ "LIFO": "Last In First Out",
566
+ "LIMS": "Laboratory Information Management Solution",
567
+ "LIP": "Lower Ignition Propensity",
568
+ "LLT": "Local Leadership Team",
569
+ "LN": "Lotus Notes",
570
+ "LoC": "Letter Of Credit",
571
+ "LOF": "Language of Finance",
572
+ "LOS": "Line Of Sight",
573
+ "LOV": "List Of Values",
574
+ "LPE": "Latest Profit Estimate",
575
+ "LPO": "Local Purchase Order",
576
+ "LPV": "Low Production Volume",
577
+ "LRR": "Leaf Reception Room",
578
+ "M&S": "Materials and Supplies",
579
+ "MASQ": "Method for Assessing Smoking Quality",
580
+ "MAT": "Moving Annual Total",
581
+ "MCE": "Minimum Collectible Excise",
582
+ "MD": "Managing Director",
583
+ "MEC": "Manufacturing Executive Council",
584
+ "MFU": "Marketing Finance Unit",
585
+ "MGP": "Materials Guidance Panel",
586
+ "MI": "Management Information",
587
+ "Mille": "One thousand cigarettes",
588
+ "MKT": "Marketing",
589
+ "MLT": "Marketing Leadership Team",
590
+ "MMA": "Management Marketing Account",
591
+ "Mn": "Million",
592
+ "MNF": "Manufacturing",
593
+ "MoC": "Minister of Commerce",
594
+ "MoF": "Minister of Finance",
595
+ "MoH": "Minister of Health",
596
+ "Mon": "Month on Month",
597
+ "MOP": "Members of the Protocol",
598
+ "MOPE": "Monthly Operating Profit Estimate",
599
+ "MoS": "Measure of Success",
600
+ "MPQ": "Managing Product Quality",
601
+ "MPS": "Master Production Scheduling",
602
+ "MPSG": "Master and Product Strategy Group",
603
+ "MQI": "Manufacturing Quality Index",
604
+ "MQS": "Materials Qualification System",
605
+ "MR": "Management Review",
606
+ "MRP II": "Manufacturing Resource Planning",
607
+ "IT": "Illicit Trade / Information Technology",
608
+ "ITC": "India Tobacco Company",
609
+ "ITGA": "International Tobacco Growers’ Association",
610
+ "ITIL": "Information Technology Infrastructure Library",
611
+ "ITP": "Illicit Trade Protocol",
612
+ "ITPC": "IT Project Committee",
613
+ "ITT": "Internationally Traded Tobacco",
614
+ "JIT": "Just In Time",
615
+ "JRC": "Joint Research Centre",
616
+ "JTI": "Japan Tobacco International",
617
+ "JV": "Joint venture",
618
+ "KCN": "Key Control Navigator",
619
+ "KDFII": "Filter rod maker, supplied by Hauni",
620
+ "KPI": "Key Performance Indicator",
621
+ "KRA": "Key Result Areas",
622
+ "KS": "King Size",
623
+ "KSF": "King Size Filter",
624
+ "KSI": "Key Strategic Initiatives",
625
+ "KYC": "Know your Customer",
626
+ "KYS": "Know Your Supplier",
627
+ "H2": "Half 2",
628
+ "HB": "Haus Bergman",
629
+ "HL": "Hinge Lid",
630
+ "HLP": "Hinge Lid Packer",
631
+ "HoD": "Head of Department",
632
+ "HoF": "Head of Function",
633
+ "HOLO": "Head of Leaf Operations",
634
+ "HOLP": "Head of Leaf Processing",
635
+ "Horeca": "Hotels, Restaurants and Cafes",
636
+ "HoS": "Head office Services",
637
+ "HP": "High Potential",
638
+ "HPV": "High Production Volume",
639
+ "HQ": "High Quality",
640
+ "HR": "Human Resources",
641
+ "HRBP": "Human Resources Business Partner",
642
+ "HS Code": "Harmonized Commodity Description and Coding System",
643
+ "HSE": "Health, Safety, Environment",
644
+ "HSU": "High Speed Unit",
645
+ "HTD": "High Temperature Dryer",
646
+ "HVST": "High Velocity Stem Tube",
647
+ "I&C": "Information & Consultation",
648
+ "IA": "International Assignment",
649
+ "IAAA": "International Advertising Association",
650
+ "IAM": "Identity and Access Management",
651
+ "IB": "International brand",
652
+ "IBG": "International Brand Group",
653
+ "ICA": "Inward Cartage Allowance",
654
+ "ICC": "International Chamber of Commerce",
655
+ "ICP": "International Career Plan",
656
+ "IDP": "Individual Development Programme",
657
+ "IE11": "Internet Explorer 11",
658
+ "IEIS": "International Executive Incentive Scheme",
659
+ "IFRS": "International Financial Reporting Standards",
660
+ "IMASCO": "Financial Services, Tobacco and Retailing Group (Canada)",
661
+ "IMF": "International Monetary Fund",
662
+ "IMI": "Incoming Materials Inspection",
663
+ "IMP": "International Marketing Principles",
664
+ "IMS": "International Marketing Standards",
665
+ "INTERPOL": "International Criminal Police Organization",
666
+ "IP": "Intellectual Property",
667
+ "IPP": "Integrated Planning Process",
668
+ "IPR": "Intellectual Property Rights",
669
+ "IPRA": "International Political and Regulatory Affairs",
670
+ "IR": "Investor Relations",
671
+ "ISC": "Integrated Supply Chain",
672
+ "ISF": "In Store Furniture",
673
 
 
674
  }
675
 
676
  # Define the Gradio interface function