Spaces:
Sleeping
Sleeping
Update crew.py
Browse files
crew.py
CHANGED
@@ -1,18 +1,16 @@
|
|
1 |
from crewai import Crew, Process
|
2 |
from langchain_openai import ChatOpenAI
|
3 |
|
4 |
-
from agents import
|
5 |
-
from tasks import
|
6 |
|
7 |
def get_crew():
|
8 |
return Crew(
|
9 |
-
agents=[
|
10 |
-
|
11 |
-
get_editor_agent()],
|
12 |
|
13 |
-
tasks=[
|
14 |
-
|
15 |
-
get_editing_task()],
|
16 |
|
17 |
manager_llm=ChatOpenAI(model="gpt-3.5-turbo",
|
18 |
temperature=0.7),
|
|
|
1 |
from crewai import Crew, Process
|
2 |
from langchain_openai import ChatOpenAI
|
3 |
|
4 |
+
from agents import get_research_agent, get_author_agent
|
5 |
+
from tasks import get_research_task, get_author_task
|
6 |
|
7 |
def get_crew():
|
8 |
return Crew(
|
9 |
+
agents=[get_research_agent(),
|
10 |
+
get_author_agent()],
|
|
|
11 |
|
12 |
+
tasks=[get_research_task(),
|
13 |
+
get_author_task()],
|
|
|
14 |
|
15 |
manager_llm=ChatOpenAI(model="gpt-3.5-turbo",
|
16 |
temperature=0.7),
|