Spaces:
Running
Running
Update crew.py
Browse files
crew.py
CHANGED
@@ -1,20 +1,18 @@
|
|
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 |
-
|
12 |
-
#get_risk_management_agent()],
|
13 |
|
14 |
-
tasks=[
|
15 |
-
|
16 |
-
|
17 |
-
#get_risk_management_task()],
|
18 |
|
19 |
manager_llm=ChatOpenAI(model="gpt-3.5-turbo",
|
20 |
temperature=0.7),
|
|
|
1 |
from crewai import Crew, Process
|
2 |
from langchain_openai import ChatOpenAI
|
3 |
|
4 |
+
from agents import get_content_planner_agent, get_content_writer_agent, get_editor_agent
|
5 |
+
from tasks import get_content_planning_task, get_content_writing_task, get_editing_task
|
6 |
|
7 |
def get_crew():
|
8 |
return Crew(
|
9 |
+
agents=[get_content_planner_agent(),
|
10 |
+
get_content_writer_agent(),
|
11 |
+
get_editor_agent()],
|
|
|
12 |
|
13 |
+
tasks=[get_content_planning_task(),
|
14 |
+
get_content_writing_task(),
|
15 |
+
get_editing_task()],
|
|
|
16 |
|
17 |
manager_llm=ChatOpenAI(model="gpt-3.5-turbo",
|
18 |
temperature=0.7),
|