Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ def crewai_process(research_topic):
|
|
61 |
allow_delegation=False,
|
62 |
llm = gemini_llm,
|
63 |
tools=[
|
64 |
-
ClarifaiTools.
|
65 |
]
|
66 |
|
67 |
# Add tools and other optional parameters as needed
|
@@ -127,7 +127,7 @@ def crewai_process(research_topic):
|
|
127 |
)
|
128 |
|
129 |
task2 = Task(
|
130 |
-
description="""
|
131 |
agent=artist
|
132 |
)
|
133 |
|
@@ -150,8 +150,8 @@ def crewai_process(research_topic):
|
|
150 |
crew = Crew(
|
151 |
# agents=[author, artist, poet, reader, finalizer ],
|
152 |
# tasks=[task1, task2, task3, task4, task5]
|
153 |
-
agents=[author, poet, finalizer ],
|
154 |
-
tasks=[task1, task3, task5],
|
155 |
verbose=2,
|
156 |
process=Process.sequential
|
157 |
)
|
|
|
61 |
allow_delegation=False,
|
62 |
llm = gemini_llm,
|
63 |
tools=[
|
64 |
+
ClarifaiTools.clarifai_image
|
65 |
]
|
66 |
|
67 |
# Add tools and other optional parameters as needed
|
|
|
127 |
)
|
128 |
|
129 |
task2 = Task(
|
130 |
+
description="""Summarize the author story into an image prompt and use clarifa_image to draw it.""",
|
131 |
agent=artist
|
132 |
)
|
133 |
|
|
|
150 |
crew = Crew(
|
151 |
# agents=[author, artist, poet, reader, finalizer ],
|
152 |
# tasks=[task1, task2, task3, task4, task5]
|
153 |
+
agents=[author, artist, poet, finalizer ],
|
154 |
+
tasks=[task1, task2, task3, task5],
|
155 |
verbose=2,
|
156 |
process=Process.sequential
|
157 |
)
|