Update app.py
Browse files
app.py
CHANGED
|
@@ -120,7 +120,7 @@ def crewai_process(research_topic):
|
|
| 120 |
finalizer = Agent(
|
| 121 |
role='Sums Output Utility',
|
| 122 |
goal='Put together the final output.',
|
| 123 |
-
backstory="""
|
| 124 |
verbose=True,
|
| 125 |
allow_delegation=False,
|
| 126 |
llm = gemini_llm,
|
|
@@ -175,8 +175,7 @@ def crewai_process(research_topic):
|
|
| 175 |
)
|
| 176 |
|
| 177 |
task7 = Task(
|
| 178 |
-
description="""
|
| 179 |
-
make sure you label the story and the poem so you can tell them apart, name the story and poem appropriately """,
|
| 180 |
agent=finalizer
|
| 181 |
)
|
| 182 |
|
|
@@ -184,8 +183,8 @@ def crewai_process(research_topic):
|
|
| 184 |
|
| 185 |
# Instantiate your crew with a sequential process
|
| 186 |
crew = Crew(
|
| 187 |
-
agents=[author,
|
| 188 |
-
tasks=[task1,
|
| 189 |
process=Process.sequential
|
| 190 |
)
|
| 191 |
|
|
|
|
| 120 |
finalizer = Agent(
|
| 121 |
role='Sums Output Utility',
|
| 122 |
goal='Put together the final output.',
|
| 123 |
+
backstory="""Follows instructions """,
|
| 124 |
verbose=True,
|
| 125 |
allow_delegation=False,
|
| 126 |
llm = gemini_llm,
|
|
|
|
| 175 |
)
|
| 176 |
|
| 177 |
task7 = Task(
|
| 178 |
+
description="""Output the story in the following format name:story stegemet for all 8 story segments""",
|
|
|
|
| 179 |
agent=finalizer
|
| 180 |
)
|
| 181 |
|
|
|
|
| 183 |
|
| 184 |
# Instantiate your crew with a sequential process
|
| 185 |
crew = Crew(
|
| 186 |
+
agents=[author, finalizer],
|
| 187 |
+
tasks=[task1, task7],
|
| 188 |
process=Process.sequential
|
| 189 |
)
|
| 190 |
|