mukiibi commited on
Commit
c2a87fc
·
verified ·
1 Parent(s): 37ddcd1

Debugging response

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -294,13 +294,9 @@ def respond(message, history, session_id):
294
  if not session_id:
295
  session_id = str(uuid.uuid4())
296
 
297
- response = get_context_and_answer(message, history, session_id)
298
 
299
- config = {"configurable": {"thread_id": str(session_id), "checkpoint_ns": ""}}
300
- updated_messages = (memory.get(config) or {}).get("messages", [])
301
-
302
- history.append({"role": "user", "content": message})
303
- history.append({"role": "assistant", "content": response})
304
 
305
  return "", history
306
  def create_interface():
 
294
  if not session_id:
295
  session_id = str(uuid.uuid4())
296
 
297
+ bot_response = get_context_and_answer(message, history, session_id)
298
 
299
+ history.append([message, bot_response])
 
 
 
 
300
 
301
  return "", history
302
  def create_interface():