apahilaj commited on
Commit
7008b46
·
1 Parent(s): e44f1b6

memory.history is not working

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -60,7 +60,7 @@ def load_db(file, k):
60
 
61
  def chat(input_text, pdf_file):
62
  qa = load_db(pdf_file, 3)
63
-
64
  if not memory.history:
65
  # If no previous conversation, start with a greeting
66
  response = qa.invoke({"question": "Hi, how can I help you today?", "chat_history": []})
 
60
 
61
  def chat(input_text, pdf_file):
62
  qa = load_db(pdf_file, 3)
63
+ print(memory)
64
  if not memory.history:
65
  # If no previous conversation, start with a greeting
66
  response = qa.invoke({"question": "Hi, how can I help you today?", "chat_history": []})