vedsadani commited on
Commit
2eae880
·
verified ·
1 Parent(s): 97225d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -188,11 +188,11 @@ def echo(message, history):
188
  def echo_agent(message, history):
189
  try:
190
  response = agent.chat(message, output_type= 'text')
191
- explanation = agent.explain()
192
 
193
- result = "Answer: \n" + '\n' + response + '\n' + '\n' + "Explanation: \n" + '\n' + explanation
194
 
195
- return result
196
  except Exception as e:
197
  error_message = f"An error occurred: {e}"+str(e.with_traceback) + str(e.args)
198
  return error_message
 
188
  def echo_agent(message, history):
189
  try:
190
  response = agent.chat(message, output_type= 'text')
191
+ # explanation = agent.explain()
192
 
193
+ # result = "Answer: \n" + '\n' + response.str() + '\n' + '\n' + "Explanation: \n" + '\n' + explanation
194
 
195
+ return response
196
  except Exception as e:
197
  error_message = f"An error occurred: {e}"+str(e.with_traceback) + str(e.args)
198
  return error_message