Spaces:
Running
Running
Update crew.py
Browse files
crew.py
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
from crewai import Crew, Process
|
2 |
from langchain_openai import ChatOpenAI
|
3 |
|
4 |
-
from agents import
|
5 |
-
from tasks import
|
6 |
|
7 |
-
def
|
8 |
return Crew(
|
9 |
-
agents=[
|
10 |
-
tasks=[
|
11 |
verbose=2
|
12 |
)
|
|
|
1 |
from crewai import Crew, Process
|
2 |
from langchain_openai import ChatOpenAI
|
3 |
|
4 |
+
from agents import get_plan_agent, get_write_agent, get_edit_agent
|
5 |
+
from tasks import get_plan_task, get_write_task, get_edit_task
|
6 |
|
7 |
+
def get_crew():
|
8 |
return Crew(
|
9 |
+
agents=[get_plan_agent(), get_write_agent(), get_edit_agent()],
|
10 |
+
tasks=[get_plan_task(), get_write_task(), get_edit_task()],
|
11 |
verbose=2
|
12 |
)
|