Update app.py
Browse files
app.py
CHANGED
|
@@ -150,6 +150,10 @@ def handle_input(user_prompt, image=None, video=None, audio=None, doc=None, webs
|
|
| 150 |
)
|
| 151 |
return response.choices[0].message.content
|
| 152 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
# Initialize agent
|
| 154 |
agent = ZeroShotAgent(llm_chain=LLMChain(llm=llm_function, prompt=None), tools=tools, verbose=True)
|
| 155 |
agent_executor = AgentExecutor.from_agent_and_tools(agent=agent, tools=tools, verbose=True)
|
|
|
|
| 150 |
)
|
| 151 |
return response.choices[0].message.content
|
| 152 |
|
| 153 |
+
# Initialize agent with an empty string prompt for LLMChain
|
| 154 |
+
agent = ZeroShotAgent(llm_chain=LLMChain(llm=llm_function, prompt=""), tools=tools, verbose=True)
|
| 155 |
+
agent_executor = AgentExecutor.from_agent_and_tools(agent=agent, tools=tools, verbose=True)
|
| 156 |
+
|
| 157 |
# Initialize agent
|
| 158 |
agent = ZeroShotAgent(llm_chain=LLMChain(llm=llm_function, prompt=None), tools=tools, verbose=True)
|
| 159 |
agent_executor = AgentExecutor.from_agent_and_tools(agent=agent, tools=tools, verbose=True)
|