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