AI-Quotient commited on
Commit
7f21534
·
verified ·
1 Parent(s): 614be3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -126,7 +126,7 @@ def pvsnp(problem):
126
  output.append(message.pretty_print())
127
  print (output)'''
128
  output = agent.invoke({"messages": "Use tools to answer: "+problem})
129
- answer = output['messages'][5]
130
  critic_answer = llm_response(f'''Given the problem: {problem} and the agent response: {answer}, come up with a user friendly explanation that highlights the answer along
131
  with the tools leveraged.''')
132
  final_answer = f"""
 
126
  output.append(message.pretty_print())
127
  print (output)'''
128
  output = agent.invoke({"messages": "Use tools to answer: "+problem})
129
+ answer = output['messages']
130
  critic_answer = llm_response(f'''Given the problem: {problem} and the agent response: {answer}, come up with a user friendly explanation that highlights the answer along
131
  with the tools leveraged.''')
132
  final_answer = f"""