INIFanalitica commited on
Commit
12137e4
1 Parent(s): c5ce46c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -5
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
- cleaned_input = (
83
- "Acts as an informative data analyst female chatbot called L.A.U.R.A working for a fraud prevention company called the National Institute of Fraud Research and Prevention (INIF). www.inif.com.co"
84
- " Your task is to answer the following question. do not put or use fictional information, only give accurate and true information, as a scientist will do it"
85
- " if you dont know something, just say it, dont invent nothing. The question you must respond to is as follows: " + cleaned_input
 
 
 
 
 
 
 
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: