bstraehle commited on
Commit
b05f917
·
verified ·
1 Parent(s): cfae976

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +7 -7
crew.py CHANGED
@@ -120,11 +120,11 @@ def run_crew(question, file_name):
120
  expected_output="Content to help answer the question. "
121
  )
122
 
123
- #manager_task = Task(
124
- # agent=manager_agent,
125
- # description="Try to answer the following question. If needed, delegate to **one** of your coworkers, image_analysis_agent, python_coding_agent, web_search_agent, or video_analysis_agent for help. Question: \"{topic}\" ",
126
- # expected_output="The answer to the question. "
127
- #)
128
 
129
  # Crew
130
 
@@ -134,8 +134,8 @@ def run_crew(question, file_name):
134
  manager_agent=manager_agent,
135
  #manager_llm=MANAGER_MODEL,
136
  process=Process.hierarchical,
137
- tasks=[image_analysis_task, python_coding_task, web_search_task, video_analysis_task],
138
- #tasks=[manager_task],
139
  verbose=True
140
  )
141
 
 
120
  expected_output="Content to help answer the question. "
121
  )
122
 
123
+ manager_task = Task(
124
+ agent=manager_agent,
125
+ description="Try to answer the following question. If needed, delegate to **one** of your coworkers, image_analysis_agent, python_coding_agent, web_search_agent, or video_analysis_agent for help. Question: \"{topic}\" ",
126
+ expected_output="The answer to the question. "
127
+ )
128
 
129
  # Crew
130
 
 
134
  manager_agent=manager_agent,
135
  #manager_llm=MANAGER_MODEL,
136
  process=Process.hierarchical,
137
+ #tasks=[image_analysis_task, python_coding_task, web_search_task, video_analysis_task],
138
+ tasks=[manager_task],
139
  verbose=True
140
  )
141