rca-umb commited on
Commit
6fadd01
·
verified ·
1 Parent(s): 5eed381

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -47,7 +47,6 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
47
  # 1. Instantiate Agent ( modify this part to create your agent)
48
  try:
49
  agent = MyAgent()
50
- return agent.system_prompt, None
51
  except Exception as e:
52
  print(f"Error instantiating agent: {e}")
53
  return f"Error initializing agent: {e}", None
@@ -87,7 +86,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
87
  print(f"Skipping item with missing task_id or question: {item}")
88
  continue
89
  try:
90
- submitted_answer = agent(
91
  "## INSTRUCTIONS\n"
92
  "You are a general AI assistant. I will ask you a question. Report your thoughts, and "
93
  "use the final_answer tool to provide JUST your final answer and nothing else. "
 
47
  # 1. Instantiate Agent ( modify this part to create your agent)
48
  try:
49
  agent = MyAgent()
 
50
  except Exception as e:
51
  print(f"Error instantiating agent: {e}")
52
  return f"Error initializing agent: {e}", None
 
86
  print(f"Skipping item with missing task_id or question: {item}")
87
  continue
88
  try:
89
+ submitted_answer = agent.run(
90
  "## INSTRUCTIONS\n"
91
  "You are a general AI assistant. I will ask you a question. Report your thoughts, and "
92
  "use the final_answer tool to provide JUST your final answer and nothing else. "