Spaces:
Sleeping
Sleeping
Update app.py
Browse files102 unmodified lines10310410510610710810966 unmodified lines176177178179180181182102 unmodified linesmessage = HumanMessage(content=analysis_prompt)response = self.llm.invoke([message])print(f"Question analysis: {response.content[:100]}...")return {**state,66 unmodified linesresponse = self.llm.invoke([message])# Extract only the FINAL ANSWER partfull_response = response.contentfinal_answer = full_responseif "FINAL ANSWER:" in full_response:102 unmodified lines10310410510610710810966 unmodified lines176177178179180181182183102 unmodified linesmessage = HumanMessage(content=analysis_prompt)response = self.llm.invoke([message])print(f"Question analysis: {response[:100]}...")return {**state,66 unmodified linesresponse = self.llm.invoke([message])# Extract only the FINAL ANSWER part# full_response = response.contentfull_response = responsefinal_answer = full_responseif "FINAL ANSWER:" in full_response:
app.py+3-2