Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -132,8 +132,8 @@ def kickoff_crew(topic: str) -> dict:
|
|
132 |
# Define Tasks
|
133 |
research_task = Task(
|
134 |
description=(
|
135 |
-
"Use the DuckDuckGoResults tool to collect initial search snippets on ##{topic}##. "
|
136 |
-
"If more detailed searches are required, generate and execute new queries related to ##{topic}##. "
|
137 |
"Subsequently, employ the WebScrapper tool to delve deeper into significant URLs identified from the snippets, extracting further information and insights. "
|
138 |
"Compile these findings into a preliminary draft, documenting all relevant sources, titles, and links associated with the topic. "
|
139 |
"Ensure high accuracy throughout the process and avoid any fabrication or misrepresentation of information."
|
@@ -159,7 +159,7 @@ def kickoff_crew(topic: str) -> dict:
|
|
159 |
"Ensure the document is grammatically correct and ready for publication or presentation."
|
160 |
),
|
161 |
agent=editor,
|
162 |
-
|
163 |
)
|
164 |
|
165 |
# Forming the Crew
|
|
|
132 |
# Define Tasks
|
133 |
research_task = Task(
|
134 |
description=(
|
135 |
+
"Use the DuckDuckGoResults tool to collect initial search snippets on ## {topic} ##. "
|
136 |
+
"If more detailed searches are required, generate and execute new queries related to ## {topic} ##. "
|
137 |
"Subsequently, employ the WebScrapper tool to delve deeper into significant URLs identified from the snippets, extracting further information and insights. "
|
138 |
"Compile these findings into a preliminary draft, documenting all relevant sources, titles, and links associated with the topic. "
|
139 |
"Ensure high accuracy throughout the process and avoid any fabrication or misrepresentation of information."
|
|
|
159 |
"Ensure the document is grammatically correct and ready for publication or presentation."
|
160 |
),
|
161 |
agent=editor,
|
162 |
+
context=[research_task]
|
163 |
)
|
164 |
|
165 |
# Forming the Crew
|