Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,6 +83,8 @@ prompt = ZeroShotAgent.create_prompt(
|
|
| 83 |
input_variables=["input", "chat_history", "agent_scratchpad"]
|
| 84 |
)
|
| 85 |
|
|
|
|
|
|
|
| 86 |
agent = ZeroShotAgent(llm_chain=llm_chain, tools=tools, verbose=True)
|
| 87 |
agent_chain = AgentExecutor.from_agent_and_tools(agent=agent, tools=tools, verbose=True, memory=memory)
|
| 88 |
|
|
|
|
| 83 |
input_variables=["input", "chat_history", "agent_scratchpad"]
|
| 84 |
)
|
| 85 |
|
| 86 |
+
llm_chain = LLMChain(llm=llm, prompt=prompt)
|
| 87 |
+
|
| 88 |
agent = ZeroShotAgent(llm_chain=llm_chain, tools=tools, verbose=True)
|
| 89 |
agent_chain = AgentExecutor.from_agent_and_tools(agent=agent, tools=tools, verbose=True, memory=memory)
|
| 90 |
|