Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
|
|
|
| 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 |
|