GLECO commited on
Commit
6677e4f
·
1 Parent(s): 8d8dab8
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -72,11 +72,11 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
72
  print(f"Skipping item with missing task_id or question: {item}")
73
  continue
74
  try:
75
- init_state_3 = GraphState(history=[
76
  {'role': 'system', 'content': SYSTEM_PROMPT_MANAGER},
77
- {'role': 'human', 'content': 'What is the first name of the only Malko Competition recipient from the 20th Century (after 1977) whose nationality on record is a country that no longer exists?'}
78
  ])
79
- submitted_answer = agent.invoke(question_text)
80
  answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer['history'][-1].content})
81
  results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
82
  except Exception as e:
 
72
  print(f"Skipping item with missing task_id or question: {item}")
73
  continue
74
  try:
75
+ init_state = GraphState(history=[
76
  {'role': 'system', 'content': SYSTEM_PROMPT_MANAGER},
77
+ {'role': 'human', 'content': question_text}
78
  ])
79
+ submitted_answer = agent.invoke(init_state)
80
  answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer['history'][-1].content})
81
  results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
82
  except Exception as e: