andreinigo commited on
Commit
c92b043
·
1 Parent(s): 1a5028b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -71,7 +71,7 @@ def asesor_avianca(query):
71
  "\n---------------------\n"
72
  "Given the context information and not prior knowledge, "
73
  "answer the question to the user: {question}\n"
74
- "If the context is not helpful to answer the question then refuse to answer the question in the same language."
75
  )
76
  initial_qa_prompt = PromptTemplate(
77
  input_variables=["context_str", "question"], template=initial_qa_template
@@ -91,7 +91,8 @@ demo = gr.Interface(
91
  description = "Hola soy tu asesor personal de Avianca. Pregúntame lo que necesites saber sobre las reglas de tu vuelo. \nHi, I am Hexagonito, your Avianca rules personal assistant, ask me anything about the rules applying to your flight in any language.",
92
  examples=[
93
  ["qué documentos necesito para viajar?"],
94
- ["no llegó mi equipaje, qué puedo hacer?"]
 
95
  ],
96
  )
97
 
 
71
  "\n---------------------\n"
72
  "Given the context information and not prior knowledge, "
73
  "answer the question to the user: {question}\n"
74
+ "If the context is not helpful to answer the question then politely refuse to answer the question.\nAnswer in the same language:"
75
  )
76
  initial_qa_prompt = PromptTemplate(
77
  input_variables=["context_str", "question"], template=initial_qa_template
 
91
  description = "Hola soy tu asesor personal de Avianca. Pregúntame lo que necesites saber sobre las reglas de tu vuelo. \nHi, I am Hexagonito, your Avianca rules personal assistant, ask me anything about the rules applying to your flight in any language.",
92
  examples=[
93
  ["qué documentos necesito para viajar?"],
94
+ ["qué es el hub de avianca?"],
95
+ ["where can I reclaim lost baggage?"]
96
  ],
97
  )
98