iQuentin commited on
Commit
1d9c94e
·
verified ·
1 Parent(s): cf065ca

messing with add_answer to make work

Browse files
Files changed (1) hide show
  1. simuGAIA.py +3 -2
simuGAIA.py CHANGED
@@ -232,7 +232,8 @@ def run_simuGAIA_all( profile: gr.OAuthProfile | None, submit: Optional[bool] =
232
 
233
  # 2.5 Awaken the AnswerDataManager to get and store already answered questions
234
  manager = AnswerDataManager("already_answered.json")
235
- manager.load_data()
 
236
 
237
  # 3. Run your Agent
238
  results_log = []
@@ -255,7 +256,7 @@ def run_simuGAIA_all( profile: gr.OAuthProfile | None, submit: Optional[bool] =
255
  submitted_answer = agent.invoke(question_text)
256
 
257
  # Save answer, task_id, and question_text to already_answered.json
258
- manager.add_answer(task_id, question_text, submitted_answer)
259
  success = manager.add_answer(
260
  task_id=task_id,
261
  question=question_text,
 
232
 
233
  # 2.5 Awaken the AnswerDataManager to get and store already answered questions
234
  manager = AnswerDataManager("already_answered.json")
235
+ data = manager.load_data()
236
+ print(data.__str__)
237
 
238
  # 3. Run your Agent
239
  results_log = []
 
256
  submitted_answer = agent.invoke(question_text)
257
 
258
  # Save answer, task_id, and question_text to already_answered.json
259
+ # manager.add_answer(task_id, question_text, submitted_answer)
260
  success = manager.add_answer(
261
  task_id=task_id,
262
  question=question_text,