Spaces:
Configuration error
Configuration error
Update crew.py
Browse files
crew.py
CHANGED
|
@@ -7,7 +7,7 @@ import os
|
|
| 7 |
import pandas as pd
|
| 8 |
from crewai import Agent, Crew, Process, Task
|
| 9 |
from crewai.tools import tool
|
| 10 |
-
from crewai_tools import StagehandTool
|
| 11 |
from google import genai
|
| 12 |
from google.genai import types
|
| 13 |
from openinference.instrumentation.crewai import CrewAIInstrumentor
|
|
@@ -326,22 +326,22 @@ def run_crew(question, file_path):
|
|
| 326 |
verbose=True
|
| 327 |
)
|
| 328 |
|
| 329 |
-
with StagehandTool(
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
) as web_browser_tool:
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
|
| 346 |
image_analysis_agent = Agent(
|
| 347 |
role="Image Analysis Agent",
|
|
@@ -466,7 +466,7 @@ def run_crew(question, file_path):
|
|
| 466 |
|
| 467 |
crew = Crew(
|
| 468 |
agents=[web_search_agent,
|
| 469 |
-
web_browser_agent,
|
| 470 |
image_analysis_agent,
|
| 471 |
audio_analysis_agent,
|
| 472 |
video_analysis_agent,
|
|
|
|
| 7 |
import pandas as pd
|
| 8 |
from crewai import Agent, Crew, Process, Task
|
| 9 |
from crewai.tools import tool
|
| 10 |
+
#from crewai_tools import StagehandTool
|
| 11 |
from google import genai
|
| 12 |
from google.genai import types
|
| 13 |
from openinference.instrumentation.crewai import CrewAIInstrumentor
|
|
|
|
| 326 |
verbose=True
|
| 327 |
)
|
| 328 |
|
| 329 |
+
#with StagehandTool(
|
| 330 |
+
# api_key=os.environ["BROWSERBASE_API_KEY"],
|
| 331 |
+
# project_id=os.environ["BROWSERBASE_PROJECT_ID"],
|
| 332 |
+
# model_api_key=os.environ["OPENAI_API_KEY"],
|
| 333 |
+
# model_name="gpt-4.1"
|
| 334 |
+
#) as web_browser_tool:
|
| 335 |
+
# web_browser_agent = Agent(
|
| 336 |
+
# role="Web Browser Agent",
|
| 337 |
+
# goal="Given a question and URL, load the URL and act, extract, navigate, observe, and answer the question: {question}",
|
| 338 |
+
# backstory="As an expert browser assistant, you load the URL and act, extract, navigate, observe to answer the question.",
|
| 339 |
+
# allow_delegation=False,
|
| 340 |
+
# llm=AGENT_MODEL,
|
| 341 |
+
# max_iter=2,
|
| 342 |
+
# tools=[web_browser_tool],
|
| 343 |
+
# verbose=True
|
| 344 |
+
# )
|
| 345 |
|
| 346 |
image_analysis_agent = Agent(
|
| 347 |
role="Image Analysis Agent",
|
|
|
|
| 466 |
|
| 467 |
crew = Crew(
|
| 468 |
agents=[web_search_agent,
|
| 469 |
+
#web_browser_agent,
|
| 470 |
image_analysis_agent,
|
| 471 |
audio_analysis_agent,
|
| 472 |
video_analysis_agent,
|