Toumaima commited on
Commit
d20a568
·
verified ·
1 Parent(s): c46e946

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -100,6 +100,7 @@ class BasicAgent:
100
  return self.check_commutativity()
101
  if self.maybe_reversed(question):
102
  print("Detected likely reversed riddle.")
 
103
  return self.solve_riddle(question)
104
  return self.query_groq(question)
105
 
@@ -210,8 +211,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
210
  results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
211
 
212
  if not answers_payload:
213
- return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
214
- print(question_scorer("FINAL ANSWER: right",submitted_answer))
215
  submission_data = {
216
  "username": username.strip(),
217
  "agent_code": agent_code,
 
100
  return self.check_commutativity()
101
  if self.maybe_reversed(question):
102
  print("Detected likely reversed riddle.")
103
+ print(question_scorer("FINAL ANSWER: right",self.solve_riddle(question)))
104
  return self.solve_riddle(question)
105
  return self.query_groq(question)
106
 
 
211
  results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
212
 
213
  if not answers_payload:
214
+ return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
 
215
  submission_data = {
216
  "username": username.strip(),
217
  "agent_code": agent_code,