Update app.py
Browse files
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
|
| 147 |
-
agent_executor = AgentExecutor(agent=agent, tools=tools
|
| 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')
|