Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ def chat_interface_fn(message, history, session_id):
|
|
| 11 |
if history and isinstance(history[0], tuple):
|
| 12 |
print("DEBUG: Converting history from tuple format to dictionary format.")
|
| 13 |
history = [{"role": "user", "content": h[0]}, {"role": "assistant", "content": h[1]} for h in history]
|
| 14 |
-
|
| 15 |
# 1) Get answer from the session-based memory pipeline
|
| 16 |
answer = run_with_session_memory(message, session_id)
|
| 17 |
|
|
|
|
| 11 |
if history and isinstance(history[0], tuple):
|
| 12 |
print("DEBUG: Converting history from tuple format to dictionary format.")
|
| 13 |
history = [{"role": "user", "content": h[0]}, {"role": "assistant", "content": h[1]} for h in history]
|
| 14 |
+
|
| 15 |
# 1) Get answer from the session-based memory pipeline
|
| 16 |
answer = run_with_session_memory(message, session_id)
|
| 17 |
|