eaglelandsonce commited on
Commit
2e32e62
·
verified ·
1 Parent(s): 4b5b3ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -148,12 +148,13 @@ def crewai_process(research_topic):
148
  )
149
 
150
  task2 = Task(
151
- description="""Output the author story""",
152
  agent=illustrator
153
  )
154
 
155
  task3 = Task(
156
- description="""Divide the story into 8 parts and ensure itis engaging and resonates with children, making it a valuable and enjoyable reading experience.
 
157
  """,
158
  agent=editor
159
  )
@@ -175,7 +176,7 @@ def crewai_process(research_topic):
175
  )
176
 
177
  task7 = Task(
178
- description="""Output the author story in the following format name:story stegment for all 8 story segments""",
179
  agent=finalizer
180
  )
181
 
@@ -183,8 +184,8 @@ def crewai_process(research_topic):
183
 
184
  # Instantiate your crew with a sequential process
185
  crew = Crew(
186
- agents=[author],
187
- tasks=[task1],
188
  process=Process.sequential
189
  )
190
 
 
148
  )
149
 
150
  task2 = Task(
151
+ description="""Add illustration ideas""",
152
  agent=illustrator
153
  )
154
 
155
  task3 = Task(
156
+ description="""Suggest changes to the authors story ensuring it is engaging and resonates with children,
157
+ making it a valuable and enjoyable reading experience.
158
  """,
159
  agent=editor
160
  )
 
176
  )
177
 
178
  task7 = Task(
179
+ description="""Make the editor changes to the author story and output story in the following format name:story stegment for all 8 story segments""",
180
  agent=finalizer
181
  )
182
 
 
184
 
185
  # Instantiate your crew with a sequential process
186
  crew = Crew(
187
+ agents=[author, editor, finalizer],
188
+ tasks=[task1, task3, task7 ],
189
  process=Process.sequential
190
  )
191