Thanh Vinh Vo
commited on
Commit
·
dc8c03a
1
Parent(s):
278cb2a
update
Browse files
app.py
CHANGED
|
@@ -180,7 +180,7 @@ class BasicAgent:
|
|
| 180 |
"requests",
|
| 181 |
"bs4",
|
| 182 |
"markdownify",
|
| 183 |
-
"wikipedia
|
| 184 |
"pandas",
|
| 185 |
"io",
|
| 186 |
"PIL",
|
|
@@ -204,9 +204,9 @@ class BasicAgent:
|
|
| 204 |
Answer the following question (question_id is {question_id}):
|
| 205 |
"{question}""{file}"
|
| 206 |
Please follow rules below:
|
| 207 |
-
1.
|
| 208 |
-
2. `
|
| 209 |
-
3.
|
| 210 |
"""
|
| 211 |
result = self.code_agent.run(prompt)
|
| 212 |
print(f"Agent responded with: {result}")
|
|
|
|
| 180 |
"requests",
|
| 181 |
"bs4",
|
| 182 |
"markdownify",
|
| 183 |
+
"wikipedia",
|
| 184 |
"pandas",
|
| 185 |
"io",
|
| 186 |
"PIL",
|
|
|
|
| 204 |
Answer the following question (question_id is {question_id}):
|
| 205 |
"{question}""{file}"
|
| 206 |
Please follow rules below:
|
| 207 |
+
1. `wikipedia` Python package is provided, we should use it to interact with Wikipedia pages.
|
| 208 |
+
2. `pandas` Python package is provided, we should use it to read table data from HTML pages.
|
| 209 |
+
3. Take the question literally! Do not add any additional information or assumptions.
|
| 210 |
"""
|
| 211 |
result = self.code_agent.run(prompt)
|
| 212 |
print(f"Agent responded with: {result}")
|