Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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:
|