Moha2266 commited on
Commit
c2ecb39
·
verified ·
1 Parent(s): efbcd69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -854,7 +854,8 @@ def ask_ai(question, history, analysis_state):
854
  else:
855
  answer = fallback_ai_answer(question, analysis_state)
856
 
857
- history.append((question, answer))
 
858
  return history, ""
859
 
860
 
 
854
  else:
855
  answer = fallback_ai_answer(question, analysis_state)
856
 
857
+ history.append({"role": "user", "content": question})
858
+ history.append({"role": "assistant", "content": answer})
859
  return history, ""
860
 
861