Spaces:
Running
Running
Update crew.py
Browse files
crew.py
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
from crewai import Crew, Process
|
2 |
from langchain_openai import ChatOpenAI
|
3 |
|
4 |
-
from agents import get_researcher_agent,
|
5 |
-
from tasks import
|
6 |
|
7 |
def get_crew(model):
|
8 |
return Crew(
|
9 |
-
agents=[get_researcher_agent(model),
|
10 |
-
tasks=[
|
11 |
manager_llm=ChatOpenAI(model=model, temperature=0.7),
|
12 |
process=Process.sequential,
|
13 |
verbose=False
|
|
|
1 |
from crewai import Crew, Process
|
2 |
from langchain_openai import ChatOpenAI
|
3 |
|
4 |
+
from agents import get_researcher_agent, get_blogger_agent
|
5 |
+
from tasks import get_research_task, get_blog_task
|
6 |
|
7 |
def get_crew(model):
|
8 |
return Crew(
|
9 |
+
agents=[get_researcher_agent(model), get_blogger_agent(model)],
|
10 |
+
tasks=[get_research_task(model), get_blog_task(model)],
|
11 |
manager_llm=ChatOpenAI(model=model, temperature=0.7),
|
12 |
process=Process.sequential,
|
13 |
verbose=False
|