Update crew.py
Browse files
crew.py
CHANGED
|
@@ -173,11 +173,7 @@ def run_crew(question, file_path):
|
|
| 173 |
else:
|
| 174 |
final_question = f"{question} File path: {file_path}."
|
| 175 |
|
| 176 |
-
|
| 177 |
-
"question": final_question
|
| 178 |
-
}
|
| 179 |
-
|
| 180 |
-
answer = GAIACrew().crew().kickoff(inputs=inputs)
|
| 181 |
final_answer = get_final_answer(FINAL_ANSWER_MODEL, question, str(answer))
|
| 182 |
|
| 183 |
print(f"=> Initial question: {question}")
|
|
|
|
| 173 |
else:
|
| 174 |
final_question = f"{question} File path: {file_path}."
|
| 175 |
|
| 176 |
+
answer = GAIACrew().crew().kickoff(inputs={"question": final_question})
|
|
|
|
|
|
|
|
|
|
|
|
|
| 177 |
final_answer = get_final_answer(FINAL_ANSWER_MODEL, question, str(answer))
|
| 178 |
|
| 179 |
print(f"=> Initial question: {question}")
|