Antoine101 commited on
Commit
d3461f2
·
verified ·
1 Parent(s): 42a947e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -53,6 +53,7 @@ class BasicAgent:
53
  print(f"Agent received question (first 50 chars): {question[:50]}...")
54
  messages = [HumanMessage(content=question)]
55
  response = self.graph.invoke({"messages": messages})
 
56
  response = response['messages'][-1].content
57
  print(f"Agent returning answer: {response}")
58
  return response
@@ -129,7 +130,6 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
129
  continue
130
  try:
131
  submitted_answer = agent(question_text)
132
- print(submitted_answer)
133
  answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
134
  results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
135
  except Exception as e:
 
53
  print(f"Agent received question (first 50 chars): {question[:50]}...")
54
  messages = [HumanMessage(content=question)]
55
  response = self.graph.invoke({"messages": messages})
56
+ print(f"RESPONSE {response}")
57
  response = response['messages'][-1].content
58
  print(f"Agent returning answer: {response}")
59
  return response
 
130
  continue
131
  try:
132
  submitted_answer = agent(question_text)
 
133
  answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
134
  results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
135
  except Exception as e: