eaglelandsonce commited on
Commit
8a92caf
1 Parent(s): e71d259

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -133,15 +133,14 @@ 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 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.
140
  Step 4 - Develop the Plot: Craft a series of simple, linear events showcasing the protagonist's efforts to resolve the conflict, utilizing action, dialogue, and description.
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 - Add a Moral: Add a moral or lesson linked to the story's theme.
144
- Step 8 - Conclude with a Poem: End with a one sentence poem 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
@@ -184,8 +183,8 @@ def crewai_process(research_topic):
184
 
185
  # Instantiate your crew with a sequential process
186
  crew = Crew(
187
- agents=[author, editor],
188
- tasks=[task1, task3],
189
  process=Process.sequential
190
  )
191
 
 
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.
140
  Step 4 - Develop the Plot: Craft a series of simple, linear events showcasing the protagonist's efforts to resolve the conflict, utilizing action, dialogue, and description.
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
 
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