Update app.py
Browse files
app.py
CHANGED
@@ -124,21 +124,21 @@ def crewai_process(discussion_topic):
|
|
124 |
# Create tasks for your agents
|
125 |
task1 = Task(
|
126 |
description=f"""Discuss the {discussion_topic}. Use Mixtral
|
127 |
-
do 10 rounds of chat with. react to
|
128 |
agent=crazy2
|
129 |
)
|
130 |
|
131 |
task2 = Task(
|
132 |
description=f"""Discuss the {discussion_topic}. Use Mixtral
|
133 |
-
do 10 rounds of chat with. react to
|
134 |
Discuss the impact of PTSD""",
|
135 |
-
agent=
|
136 |
)
|
137 |
task3 = Task(
|
138 |
description=f"""Discuss the {discussion_topic}. Use Mixtral
|
139 |
do 10 rounds of chat with. react to crazy5
|
140 |
Share insights from overcoming depression or any type of mental illness. """,
|
141 |
-
agent=
|
142 |
)
|
143 |
task4 = Task(
|
144 |
description=f"""Discuss the {discussion_topic}. Use Mixtral
|
@@ -152,7 +152,7 @@ def crewai_process(discussion_topic):
|
|
152 |
|
153 |
# Instantiate your crew with a sequential process
|
154 |
crew = Crew(
|
155 |
-
agents=[crazy3, crazy4,
|
156 |
tasks=[task1, task2, task3, task4, task5],
|
157 |
verbose=2,
|
158 |
process=Process.sequential
|
|
|
124 |
# Create tasks for your agents
|
125 |
task1 = Task(
|
126 |
description=f"""Discuss the {discussion_topic}. Use Mixtral
|
127 |
+
do 10 rounds of chat with. react to crazy3 """,
|
128 |
agent=crazy2
|
129 |
)
|
130 |
|
131 |
task2 = Task(
|
132 |
description=f"""Discuss the {discussion_topic}. Use Mixtral
|
133 |
+
do 10 rounds of chat with. react to crazy4.
|
134 |
Discuss the impact of PTSD""",
|
135 |
+
agent=crazy3
|
136 |
)
|
137 |
task3 = Task(
|
138 |
description=f"""Discuss the {discussion_topic}. Use Mixtral
|
139 |
do 10 rounds of chat with. react to crazy5
|
140 |
Share insights from overcoming depression or any type of mental illness. """,
|
141 |
+
agent=crazy4
|
142 |
)
|
143 |
task4 = Task(
|
144 |
description=f"""Discuss the {discussion_topic}. Use Mixtral
|
|
|
152 |
|
153 |
# Instantiate your crew with a sequential process
|
154 |
crew = Crew(
|
155 |
+
agents=[crazy2, crazy3, crazy4, crazy5, crazy1],
|
156 |
tasks=[task1, task2, task3, task4, task5],
|
157 |
verbose=2,
|
158 |
process=Process.sequential
|