Update crew.py
Browse files
crew.py
CHANGED
@@ -172,8 +172,12 @@ def run_crew(question, file_path):
|
|
172 |
final_question = f"{question} JSON data:\n{json_data}."
|
173 |
else:
|
174 |
final_question = f"{question} File path: {file_path}."
|
|
|
|
|
|
|
|
|
175 |
|
176 |
-
answer = GAIACrew().crew().kickoff(inputs=
|
177 |
final_answer = get_final_answer(FINAL_ANSWER_MODEL, question, str(answer))
|
178 |
|
179 |
print(f"=> Initial question: {question}")
|
|
|
172 |
final_question = f"{question} JSON data:\n{json_data}."
|
173 |
else:
|
174 |
final_question = f"{question} File path: {file_path}."
|
175 |
+
|
176 |
+
inputs = {
|
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}")
|