Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,10 +8,10 @@ from api_client import fetch_questions, submit_answers
|
|
| 8 |
class GaiaAgent:
|
| 9 |
def __init__(self):
|
| 10 |
self.graph = build_graph()
|
| 11 |
-
self.executor = self.graph.compile()
|
| 12 |
|
| 13 |
def __call__(self, question):
|
| 14 |
-
result_state = self.executor.invoke(question)
|
| 15 |
return result_state["final_answer"]
|
| 16 |
|
| 17 |
def run_and_submit_all(profile):
|
|
|
|
| 8 |
class GaiaAgent:
|
| 9 |
def __init__(self):
|
| 10 |
self.graph = build_graph()
|
| 11 |
+
self.executor = self.graph.compile() # ✅ compile graph into executable
|
| 12 |
|
| 13 |
def __call__(self, question):
|
| 14 |
+
result_state = self.executor.invoke({"question": question}) # ✅ pass as dict
|
| 15 |
return result_state["final_answer"]
|
| 16 |
|
| 17 |
def run_and_submit_all(profile):
|