kk20krishna commited on
Commit
72b943d
·
verified ·
1 Parent(s): 9bc6248

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -310,6 +310,7 @@ def ask_question(message, history):
310
 
311
  try:
312
  result = agent_executor.invoke({"input": prompt})
 
313
  final_output = result.get("output", "No output.")
314
  steps = result.get("intermediate_steps", [])
315
 
@@ -321,7 +322,7 @@ def ask_question(message, history):
321
  steps_md += f"- **Observation**: {observation.strip()}\n\n"
322
  steps_md += "</details>"
323
 
324
- return final_output + "\n\n" + steps_md
325
 
326
  except Exception as e:
327
  return f"❌ Error: {str(e)}"
 
310
 
311
  try:
312
  result = agent_executor.invoke({"input": prompt})
313
+ print("###########result: ", result)
314
  final_output = result.get("output", "No output.")
315
  steps = result.get("intermediate_steps", [])
316
 
 
322
  steps_md += f"- **Observation**: {observation.strip()}\n\n"
323
  steps_md += "</details>"
324
 
325
+ return steps_md + "\n\n" + final_output
326
 
327
  except Exception as e:
328
  return f"❌ Error: {str(e)}"