Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -143,7 +143,7 @@ agent = ZeroShotAgent(llm_chain=llm_chain, allowed_tools=tool_names)
|
|
143 |
|
144 |
def get_answer(query_string):
|
145 |
agent_executor = AgentExecutor.from_agent_and_tools(agent=agent, tools=tools, verbose=True)
|
146 |
-
response
|
147 |
result = f"{response}"
|
148 |
return result
|
149 |
|
|
|
143 |
|
144 |
def get_answer(query_string):
|
145 |
agent_executor = AgentExecutor.from_agent_and_tools(agent=agent, tools=tools, verbose=True)
|
146 |
+
response = agent_executor.run(query_string)
|
147 |
result = f"{response}"
|
148 |
return result
|
149 |
|