Update app.py
Browse files
app.py
CHANGED
@@ -137,16 +137,15 @@ def crewai_process(research_topic):
|
|
137 |
description="""create a rhyming version of the story created by the author""",
|
138 |
agent=reader
|
139 |
)
|
140 |
-
|
141 |
task5 = Task(
|
142 |
description="""output both the story created by the author and the poem created by the poet,
|
143 |
make sure you label the story and the poem so you can tell them apart, name the story and poem appropriately """,
|
144 |
agent=finalizer
|
145 |
)
|
146 |
-
|
147 |
-
|
148 |
-
description="""output
|
149 |
-
make sure you label the story and name the story appropriately """,
|
150 |
agent=finalizer
|
151 |
)
|
152 |
|
@@ -158,7 +157,7 @@ def crewai_process(research_topic):
|
|
158 |
# agents=[author, artist, poet, finalizer ],
|
159 |
# tasks=[task1, task2, task3, task5],
|
160 |
agents=[author, poet, finalizer],
|
161 |
-
tasks=[task1, task3,
|
162 |
verbose=2,
|
163 |
process=Process.sequential
|
164 |
)
|
|
|
137 |
description="""create a rhyming version of the story created by the author""",
|
138 |
agent=reader
|
139 |
)
|
140 |
+
|
141 |
task5 = Task(
|
142 |
description="""output both the story created by the author and the poem created by the poet,
|
143 |
make sure you label the story and the poem so you can tell them apart, name the story and poem appropriately """,
|
144 |
agent=finalizer
|
145 |
)
|
146 |
+
|
147 |
+
task6 = Task(
|
148 |
+
description="""output the story created by the author""",
|
|
|
149 |
agent=finalizer
|
150 |
)
|
151 |
|
|
|
157 |
# agents=[author, artist, poet, finalizer ],
|
158 |
# tasks=[task1, task2, task3, task5],
|
159 |
agents=[author, poet, finalizer],
|
160 |
+
tasks=[task1, task3, task6],
|
161 |
verbose=2,
|
162 |
process=Process.sequential
|
163 |
)
|