eaglelandsonce
commited on
Update app.py
Browse files
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
|
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,7 +141,6 @@ 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 |
-
Step 8 - Addition: Add a two sentence poem to the end of 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,7 +152,8 @@ def crewai_process(research_topic):
|
|
153 |
)
|
154 |
|
155 |
task3 = Task(
|
156 |
-
description="""
|
|
|
157 |
""",
|
158 |
agent=editor
|
159 |
)
|
|
|
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 |
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 |
)
|
153 |
|
154 |
task3 = Task(
|
155 |
+
description="""Add a two sentence poem to the end of the story created by the author
|
156 |
+
emphasizing the moral of the story created by the author. Output the final story.
|
157 |
""",
|
158 |
agent=editor
|
159 |
)
|