eaglelandsonce commited on
Commit
b430338
·
verified ·
1 Parent(s): 8a92caf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -133,7 +133,7 @@ def crewai_process(research_topic):
133
 
134
  # Create tasks for your agents
135
  task1 = Task(
136
- description=f"""Create a story about {research_topic} using the Condition complete the following 7 Steps:
137
  Step 1 - Set the Scene: Establish the setting in a time and place that fits your topic, choosing between imaginative or realistic.
138
  Step 2 - Introduce Characters: Present relatable main characters, including a protagonist and potentially an antagonist.
139
  Step 3 - Establish Conflict: Define a central conflict related to the topic, designed to engage young readers.
@@ -141,6 +141,7 @@ def crewai_process(research_topic):
141
  Step 5 - Build to Climax: Lead up to an exciting climax where the conflict reaches its peak.
142
  Step 6 - Resolve the Story: Follow the climax with a resolution that provides closure, aiming for a happy or educational ending.
143
  Step 7 - Conclude with a Moral: End with a moral or lesson linked to the story's theme.
 
144
  Condition: Use language and style throughout that is simple, clear, and appealing to children, including elements like repetition and rhymes.
145
  Remember to keep the story age-appropriate in both length and content.""",
146
  agent=author
@@ -152,8 +153,7 @@ def crewai_process(research_topic):
152
  )
153
 
154
  task3 = Task(
155
- description="""Make changes to the authors story ensuring it is engaging and resonates with children,
156
- making it a valuable and enjoyable reading experience. Output the revised story.
157
  """,
158
  agent=editor
159
  )
@@ -175,7 +175,7 @@ def crewai_process(research_topic):
175
  )
176
 
177
  task7 = Task(
178
- description="""Make the editor changes to the author story and output story in the following format name:story stegment for all 8 story segments""",
179
  agent=finalizer
180
  )
181
 
@@ -183,8 +183,8 @@ def crewai_process(research_topic):
183
 
184
  # Instantiate your crew with a sequential process
185
  crew = Crew(
186
- agents=[author, poet],
187
- tasks=[task1, task6],
188
  process=Process.sequential
189
  )
190
 
 
133
 
134
  # Create tasks for your agents
135
  task1 = Task(
136
+ description=f"""Create a story about {research_topic} using the Condition complete the following 8 Steps:
137
  Step 1 - Set the Scene: Establish the setting in a time and place that fits your topic, choosing between imaginative or realistic.
138
  Step 2 - Introduce Characters: Present relatable main characters, including a protagonist and potentially an antagonist.
139
  Step 3 - Establish Conflict: Define a central conflict related to the topic, designed to engage young readers.
 
141
  Step 5 - Build to Climax: Lead up to an exciting climax where the conflict reaches its peak.
142
  Step 6 - Resolve the Story: Follow the climax with a resolution that provides closure, aiming for a happy or educational ending.
143
  Step 7 - Conclude with a Moral: End with a moral or lesson linked to the story's theme.
144
+ Step 8 - Add a Poem: Add a two sentence poem to the story emphasizing the moral of the story.
145
  Condition: Use language and style throughout that is simple, clear, and appealing to children, including elements like repetition and rhymes.
146
  Remember to keep the story age-appropriate in both length and content.""",
147
  agent=author
 
153
  )
154
 
155
  task3 = Task(
156
+ description="""Make any necessary changes to the story to enhance the story and reader experience.
 
157
  """,
158
  agent=editor
159
  )
 
175
  )
176
 
177
  task7 = Task(
178
+ description="""Output story add any necessary editor changes.""",
179
  agent=finalizer
180
  )
181
 
 
183
 
184
  # Instantiate your crew with a sequential process
185
  crew = Crew(
186
+ agents=[author, editor],
187
+ tasks=[task1, task3],
188
  process=Process.sequential
189
  )
190