Umer797 commited on
Commit
718c470
·
verified ·
1 Parent(s): ba162e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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):