lakshmivairamani commited on
Commit
c28d00a
·
verified ·
1 Parent(s): 69774f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -184,6 +184,8 @@ iterations = 0
184
  def answer_question(user_question):
185
  # Format the response text
186
  response = agent_executor.invoke({"input": user_question})
 
 
187
  if isinstance(response, dict):
188
  response_text = response.get("output", "")
189
  else:
 
184
  def answer_question(user_question):
185
  # Format the response text
186
  response = agent_executor.invoke({"input": user_question})
187
+ if "tool_name" in response:
188
+ print(response["tool_name"])
189
  if isinstance(response, dict):
190
  response_text = response.get("output", "")
191
  else: