Thanh Vinh Vo
commited on
Commit
·
7a3e558
1
Parent(s):
3e40849
update
Browse files
app.py
CHANGED
|
@@ -39,7 +39,7 @@ class BasicAgent:
|
|
| 39 |
"wikipedia",
|
| 40 |
"pandas"
|
| 41 |
],
|
| 42 |
-
max_steps=
|
| 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.
|
| 54 |
-
3.
|
| 55 |
-
4.
|
| 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}")
|