Update app.py
Browse files
app.py
CHANGED
|
@@ -113,7 +113,7 @@ def generate_answer(state):
|
|
| 113 |
answer = llm.invoke([SystemMessage(content=final_instruction)] + [HumanMessage(content=f"Answer the question: {question}")])
|
| 114 |
|
| 115 |
# Append it to state
|
| 116 |
-
return {"answer": answer}
|
| 117 |
|
| 118 |
|
| 119 |
builder = StateGraph(State)
|
|
|
|
| 113 |
answer = llm.invoke([SystemMessage(content=final_instruction)] + [HumanMessage(content=f"Answer the question: {question}")])
|
| 114 |
|
| 115 |
# Append it to state
|
| 116 |
+
return {"answer": answer.content}
|
| 117 |
|
| 118 |
|
| 119 |
builder = StateGraph(State)
|