Spaces:
Running
on
Zero
Running
on
Zero
VanguardAI
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -162,7 +162,7 @@ def handle_input(user_prompt, image=None, video=None, audio=None, doc=None, webs
|
|
162 |
def llm_function(query):
|
163 |
return llm_chain.run(query)
|
164 |
|
165 |
-
agent_executor = AgentExecutor.
|
166 |
|
167 |
if image:
|
168 |
image = Image.open(image).convert('RGB')
|
|
|
162 |
def llm_function(query):
|
163 |
return llm_chain.run(query)
|
164 |
|
165 |
+
agent_executor = AgentExecutor.from_agent_and_tools(llm=llm_function, tools=tools, verbose=True)
|
166 |
|
167 |
if image:
|
168 |
image = Image.open(image).convert('RGB')
|