Umer797 commited on
Commit
ba162e4
·
verified ·
1 Parent(s): 9d73d9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -11,8 +11,7 @@ class GaiaAgent:
11
  self.executor = self.graph.compile()
12
 
13
  def __call__(self, question):
14
- initial_state = AgentState({"question": question}) # ✅ validated state init
15
- result_state = self.executor.invoke(initial_state)
16
  return result_state["final_answer"]
17
 
18
  def run_and_submit_all(profile):
 
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):