Update crew.py
Browse files
crew.py
CHANGED
|
@@ -194,7 +194,7 @@ def run_crew(question, file_path):
|
|
| 194 |
else:
|
| 195 |
final_question = f"{question} File path: {file_path}."
|
| 196 |
|
| 197 |
-
answer = GAIACrew(
|
| 198 |
final_answer = get_final_answer(FINAL_ANSWER_MODEL, question, str(answer))
|
| 199 |
|
| 200 |
print(f"=> Initial question: {question}")
|
|
|
|
| 194 |
else:
|
| 195 |
final_question = f"{question} File path: {file_path}."
|
| 196 |
|
| 197 |
+
answer = GAIACrew().crew().kickoff(inputs={"question": final_question})
|
| 198 |
final_answer = get_final_answer(FINAL_ANSWER_MODEL, question, str(answer))
|
| 199 |
|
| 200 |
print(f"=> Initial question: {question}")
|