Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ knowledge_base = {
|
|
16 |
"WMS": "Warehouse Management System / Wrapping Material Specification",
|
17 |
"GLT": "Green Leaf Threshing",
|
18 |
"MBL": "Modern BAT Leaf",
|
19 |
-
"
|
20 |
"PLM": "Product Lifecycle Management",
|
21 |
"PMD": "Primary Manufacturing Unit",
|
22 |
"SMD": "Secondary Manufacturing Unit",
|
@@ -88,23 +88,7 @@ knowledge_base = {
|
|
88 |
"BM": "Brand Manager",
|
89 |
"BMF": "Brand Modification Form",
|
90 |
"Bn": "Billion",
|
91 |
-
"
|
92 |
-
"BCM": "Business Change Manager / Business Continuity Management",
|
93 |
-
"BCP": "Business Continuity Plan",
|
94 |
-
"BCT": "Business Controls Team",
|
95 |
-
"BDD": "Business Development Department",
|
96 |
-
"BEL": "Business Excellence for Leaders",
|
97 |
-
"BESS": "Brand Excellence Series",
|
98 |
-
"BEST": "Business Enablers Survey Tool",
|
99 |
-
"BIA": "Business Impact Analysis",
|
100 |
-
"BIB": "Blend In a Box",
|
101 |
-
"BIM": "Brand Image Mapping / Business Implementation Manager",
|
102 |
-
"BLM": "Brand Launch & Modification",
|
103 |
-
"BLT": "BATCCA Leadership Team",
|
104 |
-
"BM": "Brand Manager",
|
105 |
-
"BMF": "Brand Modification Form",
|
106 |
-
"Bn": "Billion",
|
107 |
-
"BOD": "Bill Of Distribution",
|
108 |
"BOL": "Bill Of Lending",
|
109 |
"BOM": "Bill Of Materials",
|
110 |
"BOSS": "Business and Operational System Steering Group",
|
@@ -126,11 +110,10 @@ knowledge_base = {
|
|
126 |
"BW": "Business Warehouse",
|
127 |
"BWAP": "Below Weighted Average Price",
|
128 |
"BY": "Burley",
|
129 |
-
|
130 |
}
|
131 |
|
132 |
# Define the Gradio interface function
|
133 |
-
def chatbot_interface(
|
134 |
acronym = acronym.strip().upper() # Remove leading/trailing whitespace and convert to uppercase
|
135 |
if acronym in knowledge_base:
|
136 |
response = f"Answer: {knowledge_base[acronym]}"
|
|
|
16 |
"WMS": "Warehouse Management System / Wrapping Material Specification",
|
17 |
"GLT": "Green Leaf Threshing",
|
18 |
"MBL": "Modern BAT Leaf",
|
19 |
+
"TAO": "One SAP",
|
20 |
"PLM": "Product Lifecycle Management",
|
21 |
"PMD": "Primary Manufacturing Unit",
|
22 |
"SMD": "Secondary Manufacturing Unit",
|
|
|
88 |
"BM": "Brand Manager",
|
89 |
"BMF": "Brand Modification Form",
|
90 |
"Bn": "Billion",
|
91 |
+
"BOD": "Bill Of Distribution",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
"BOL": "Bill Of Lending",
|
93 |
"BOM": "Bill Of Materials",
|
94 |
"BOSS": "Business and Operational System Steering Group",
|
|
|
110 |
"BW": "Business Warehouse",
|
111 |
"BWAP": "Below Weighted Average Price",
|
112 |
"BY": "Burley",
|
|
|
113 |
}
|
114 |
|
115 |
# Define the Gradio interface function
|
116 |
+
def chatbot_interface(acronym):
|
117 |
acronym = acronym.strip().upper() # Remove leading/trailing whitespace and convert to uppercase
|
118 |
if acronym in knowledge_base:
|
119 |
response = f"Answer: {knowledge_base[acronym]}"
|