eaglelandsonce commited on
Commit
8e79252
·
verified ·
1 Parent(s): 9ccc8b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -61,7 +61,7 @@ def crewai_process(research_topic):
61
  allow_delegation=False,
62
  llm = gemini_llm,
63
  tools=[
64
- ClarifaiTools.gemini_search
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="""Draw a Dalle image of the story created by the author""",
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
  )