mmichiels13 commited on
Commit
cd04655
·
verified ·
1 Parent(s): ea5982e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -44,7 +44,6 @@ class BasicAgent:
44
  self.agent = CodeAgent(
45
  tools=[self.web_search, self.visit_webpage, self.final_answer],
46
  model=self.model,
47
- system_prompt=self.system_prompt,
48
  max_steps=5 # Limit reasoning steps
49
  )
50
 
@@ -60,9 +59,9 @@ class BasicAgent:
60
 
61
  try:
62
  # Run the agent with the question
63
- #formatted_question = f"{question}\n\nAnswer with only the exact answer, no explanation."
64
- #answer = self.agent.run(formatted_question)
65
- answer = self.agent.run(question)
66
  print(f"Agent returning answer: {answer[:100]}...")
67
  fixed_answer = answer
68
  except Exception as e:
 
44
  self.agent = CodeAgent(
45
  tools=[self.web_search, self.visit_webpage, self.final_answer],
46
  model=self.model,
 
47
  max_steps=5 # Limit reasoning steps
48
  )
49
 
 
59
 
60
  try:
61
  # Run the agent with the question
62
+ formatted_question = f"{question}\n\nOnly return the exact answer, no explanation."
63
+ answer = self.agent.run(formatted_question)
64
+ # answer = self.agent.run(question)
65
  print(f"Agent returning answer: {answer[:100]}...")
66
  fixed_answer = answer
67
  except Exception as e: