Update agents/crew.py
Browse files- agents/crew.py +4 -2
agents/crew.py
CHANGED
|
@@ -317,18 +317,20 @@ def _get_final_question(question, file_path):
|
|
| 317 |
def run_crew(question, file_path):
|
| 318 |
print("")
|
| 319 |
print(f"π€ Question: {question}")
|
| 320 |
-
print("")
|
| 321 |
|
| 322 |
final_question = _get_final_question(question, file_path)
|
| 323 |
|
|
|
|
| 324 |
print(f"π€ Crew execution started")
|
|
|
|
| 325 |
answer = GAIACrew().crew().kickoff(inputs={"question": final_question})
|
|
|
|
|
|
|
| 326 |
print(f"π€ Crew execution completed")
|
| 327 |
|
| 328 |
final_answer = AITools.final_answer_tool(question, answer)
|
| 329 |
|
| 330 |
print("")
|
| 331 |
print(f"π€ Answer: {final_answer}")
|
| 332 |
-
print("")
|
| 333 |
|
| 334 |
return final_answer
|
|
|
|
| 317 |
def run_crew(question, file_path):
|
| 318 |
print("")
|
| 319 |
print(f"π€ Question: {question}")
|
|
|
|
| 320 |
|
| 321 |
final_question = _get_final_question(question, file_path)
|
| 322 |
|
| 323 |
+
print("")
|
| 324 |
print(f"π€ Crew execution started")
|
| 325 |
+
|
| 326 |
answer = GAIACrew().crew().kickoff(inputs={"question": final_question})
|
| 327 |
+
|
| 328 |
+
print("")
|
| 329 |
print(f"π€ Crew execution completed")
|
| 330 |
|
| 331 |
final_answer = AITools.final_answer_tool(question, answer)
|
| 332 |
|
| 333 |
print("")
|
| 334 |
print(f"π€ Answer: {final_answer}")
|
|
|
|
| 335 |
|
| 336 |
return final_answer
|