Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -671,6 +671,9 @@ knowledge_base = {
|
|
671 |
"IR": "Investor Relations",
|
672 |
"ISC": "Integrated Supply Chain",
|
673 |
"ISF": "In Store Furniture",
|
|
|
|
|
|
|
674 |
|
675 |
}
|
676 |
|
@@ -680,7 +683,7 @@ def chatbot_interface(acronym):
|
|
680 |
if acronym in knowledge_base:
|
681 |
response = f"Answer: {knowledge_base[acronym]}"
|
682 |
else:
|
683 |
-
response = "Not found in the
|
684 |
return response
|
685 |
|
686 |
# Create the Gradio interface
|
@@ -689,7 +692,7 @@ iface = gr.Interface(
|
|
689 |
inputs="text",
|
690 |
outputs="text",
|
691 |
title="BATB Acronym Finder",
|
692 |
-
description="
|
693 |
theme='default'
|
694 |
)
|
695 |
|
|
|
671 |
"IR": "Investor Relations",
|
672 |
"ISC": "Integrated Supply Chain",
|
673 |
"ISF": "In Store Furniture",
|
674 |
+
"PED" : "Primary Engineering Department",
|
675 |
+
"EOB" : "End of Business Day",
|
676 |
+
"OOO" :"Out of Office",
|
677 |
|
678 |
}
|
679 |
|
|
|
683 |
if acronym in knowledge_base:
|
684 |
response = f"Answer: {knowledge_base[acronym]}"
|
685 |
else:
|
686 |
+
response = "Not found in the BATCCAPEDIA"
|
687 |
return response
|
688 |
|
689 |
# Create the Gradio interface
|
|
|
692 |
inputs="text",
|
693 |
outputs="text",
|
694 |
title="BATB Acronym Finder",
|
695 |
+
description="Dictionary of Abbreviations & Acronyms",
|
696 |
theme='default'
|
697 |
)
|
698 |
|