Ticio commited on
Commit
e1fc0ff
·
verified ·
1 Parent(s): 057c81d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -104,9 +104,9 @@ def buscar(query):
104
  def inference(message, history):
105
  ticio = Ticio(system_prompt)
106
  ticio.add_message(message, 'user')
107
- for message in history:
108
- content = message.get('content')
109
- role = message.get('role')
110
  ticio.add_message(content, role)
111
  ticio.inference()
112
  response = ticio.last_inference()
 
104
  def inference(message, history):
105
  ticio = Ticio(system_prompt)
106
  ticio.add_message(message, 'user')
107
+ for item in history:
108
+ content = item.get('content')
109
+ role = item.get('role')
110
  ticio.add_message(content, role)
111
  ticio.inference()
112
  response = ticio.last_inference()