Thanh Vinh Vo commited on
Commit
7a3e558
·
1 Parent(s): 3e40849
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -39,7 +39,7 @@ class BasicAgent:
39
  "wikipedia",
40
  "pandas"
41
  ],
42
- max_steps=20,
43
  )
44
 
45
  def __call__(self, question: str) -> str:
@@ -50,10 +50,9 @@ class BasicAgent:
50
 
51
  Please follow following hints:
52
  1. `wikipedia` Python package is provided to interact with Wikipedia.
53
- 2. `pandas` Python package is provided. Prefer to use it to extract structured data (such as tables) from website content.
54
- 3. Try to manually inspect the website content before using code to extract information from website.
55
- 4. Use BeautifulSoup as last resort to extract information from website.
56
- 5. Please take the question literally!
57
  """
58
  result = self.agent.run(prompt)
59
  print(f"Agent responded with: {result}")
 
39
  "wikipedia",
40
  "pandas"
41
  ],
42
+ max_steps=25,
43
  )
44
 
45
  def __call__(self, question: str) -> str:
 
50
 
51
  Please follow following hints:
52
  1. `wikipedia` Python package is provided to interact with Wikipedia.
53
+ 2. `pandas` Python package is provided. It can be used to extract structured data (such as tables) from HTML content.
54
+ 3. Only use BeautifulSoup to extract information from HTML if `pandas` fails.
55
+ 4. Please take the question literally!
 
56
  """
57
  result = self.agent.run(prompt)
58
  print(f"Agent responded with: {result}")