JSAV commited on
Commit
5e6178f
1 Parent(s): e41c6f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -17,10 +17,10 @@ def res(prompt, historial):
17
  historial.append({'role':'user', 'content':prompt})
18
 
19
  # Compleción
20
- #context=get_docs(prompt)
21
- #historial.append({'role':'system', 'content':template(context)})
22
  response_choices0 = get_completion_from_messages(historial)
23
- #historial.pop() # delete the context prompt
24
 
25
  # Tratamos extraer la respuesta
26
  respuesta = response_choices0.message.content
 
17
  historial.append({'role':'user', 'content':prompt})
18
 
19
  # Compleción
20
+ context=get_docs(prompt)
21
+ historial.append({'role':'system', 'content':template(context)})
22
  response_choices0 = get_completion_from_messages(historial)
23
+ historial.pop() # delete the context prompt
24
 
25
  # Tratamos extraer la respuesta
26
  respuesta = response_choices0.message.content