Thanh Vinh Vo
commited on
Commit
·
bc1d34c
1
Parent(s):
7cb5210
update
Browse files
app.py
CHANGED
|
@@ -48,9 +48,10 @@ class BasicAgent:
|
|
| 48 |
Answer the following question:
|
| 49 |
"{question}"
|
| 50 |
|
| 51 |
-
Please follow following
|
| 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 from HTML content.
|
|
|
|
| 54 |
"""
|
| 55 |
result = self.agent.run(prompt)
|
| 56 |
print(f"Agent responded with: {result}")
|
|
|
|
| 48 |
Answer the following question:
|
| 49 |
"{question}"
|
| 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 from HTML content.
|
| 54 |
+
3. Only use BeautifulSoup to extract information from HTML if `pandas` is not enough.
|
| 55 |
"""
|
| 56 |
result = self.agent.run(prompt)
|
| 57 |
print(f"Agent responded with: {result}")
|