VanguardAI commited on
Commit
99122bc
·
verified ·
1 Parent(s): 49f29b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -143,8 +143,8 @@ def handle_input(user_prompt, image=None, audio=None, websearch=False, document=
143
  tools.append(DocumentQuestionAnswering(document))
144
 
145
  llm = ChatGroq(model=MODEL, api_key=os.environ.get("GROQ_API_KEY"))
146
- agent = create_react_agent(llm, tools, verbose=True)
147
- agent_executor = AgentExecutor(agent=agent, tools=tools, verbose=True)
148
 
149
  if image:
150
  image = Image.open(image).convert('RGB')
 
143
  tools.append(DocumentQuestionAnswering(document))
144
 
145
  llm = ChatGroq(model=MODEL, api_key=os.environ.get("GROQ_API_KEY"))
146
+ agent = create_react_agent(llm, tools)
147
+ agent_executor = AgentExecutor(agent=agent, tools=tools)
148
 
149
  if image:
150
  image = Image.open(image).convert('RGB')