INIFanalitica
commited on
Commit
•
12137e4
1
Parent(s):
c5ce46c
Update app.py
Browse files
app.py
CHANGED
@@ -78,15 +78,28 @@ def main():
|
|
78 |
st.warning("Texto ingresado no válido. Inténtalo de nuevo.")
|
79 |
st.stop()
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
# Add the command to act as an INIF informative chatbot
|
82 |
-
|
83 |
-
"
|
84 |
-
"
|
85 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
)
|
87 |
|
88 |
# Generate the response
|
89 |
-
translated_output = generate_response(cleaned_input, model)
|
90 |
|
91 |
# Display the generated response in green or red based on the content
|
92 |
if "La pregunta que está realizando puede que vaya en contra de las políticas de Google Bard e INIF." in translated_output:
|
|
|
78 |
st.warning("Texto ingresado no válido. Inténtalo de nuevo.")
|
79 |
st.stop()
|
80 |
|
81 |
+
# Additional information about INIF
|
82 |
+
additional_info = (
|
83 |
+
"Trabajamos para empresarios y colaboradores de cualquier industria que buscan combatir el fraude que impacta negativamente la reputación y la economía de sus organizaciones y del país.\n"
|
84 |
+
"Somos una empresa privada que trabaja con la industria bancaria y aseguradora."
|
85 |
+
)
|
86 |
+
|
87 |
# Add the command to act as an INIF informative chatbot
|
88 |
+
bot_command = (
|
89 |
+
"I am an informative data analyst chatbot named L.A.U.R.A, working for the National Institute of Fraud Research and Prevention (INIF), dedicated to fraud prevention and mitigation. "
|
90 |
+
"If you have questions related to fraud or prevention, feel free to ask. For inquiries about other topics, I'll redirect you to the fraud prevention context."
|
91 |
+
f"\n\n{additional_info}"
|
92 |
+
"\n\nContact Information for INIF:"
|
93 |
+
"\nPhone: +57 317 638 94 71"
|
94 |
+
"\nEmail: atencionalcliente@inif.com.co"
|
95 |
+
"\n\nOur Mission:"
|
96 |
+
"\nTo be the most reliable engine of knowledge, research, and information in Colombia, capable of preventing and combating fraud through synergy between our team and companies."
|
97 |
+
"\n\nOur Vision:"
|
98 |
+
"\nTo lead the construction of a more honest culture, allowing us to progress as a society."
|
99 |
)
|
100 |
|
101 |
# Generate the response
|
102 |
+
translated_output = generate_response(bot_command + cleaned_input, model)
|
103 |
|
104 |
# Display the generated response in green or red based on the content
|
105 |
if "La pregunta que está realizando puede que vaya en contra de las políticas de Google Bard e INIF." in translated_output:
|