sunnyday910 commited on
Commit
21a21e8
·
verified ·
1 Parent(s): f8a3ae8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)