wt002 commited on
Commit
b678e6b
·
verified ·
1 Parent(s): 5b9bc91

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -37,7 +37,8 @@ from langchain.schema import HumanMessage # Or your framework's equivalent
37
  def init_state(question: str):
38
  return {
39
  "question": question,
40
- "history": [HumanMessage(content=question)]
 
41
  }
42
 
43
 
 
37
  def init_state(question: str):
38
  return {
39
  "question": question,
40
+ "history": [HumanMessage(content=question)],
41
+ "context": {} # <- Add this line
42
  }
43
 
44