Thanh Vinh Vo
commited on
Commit
·
904a2cc
1
Parent(s):
ec56f03
update
Browse files
app.py
CHANGED
|
@@ -254,8 +254,12 @@ class BasicAgent:
|
|
| 254 |
4. `pandas` package is available for reading table data from HTML content or URL. It is useful for extracting tabular data from web pages (including Wikipedia pages).
|
| 255 |
5. If the question asks for a list, please make sure that the elements are separated by a comma(`,`) and a space(` `). For example: `1, 2, 3` instead of `1,2,3`.
|
| 256 |
6. If the question asks for a number with specific decimal places, please format the number into string with the same decimal places. For example: 3.00 instead of 3.
|
| 257 |
-
7. Remember Ice Cream is also a food item!
|
| 258 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 259 |
result = self.manager_agent.run(prompt)
|
| 260 |
print(f"Agent responded with: {result}")
|
| 261 |
return result
|
|
|
|
| 254 |
4. `pandas` package is available for reading table data from HTML content or URL. It is useful for extracting tabular data from web pages (including Wikipedia pages).
|
| 255 |
5. If the question asks for a list, please make sure that the elements are separated by a comma(`,`) and a space(` `). For example: `1, 2, 3` instead of `1,2,3`.
|
| 256 |
6. If the question asks for a number with specific decimal places, please format the number into string with the same decimal places. For example: 3.00 instead of 3.
|
|
|
|
| 257 |
"""
|
| 258 |
+
if "food" in question.lower():
|
| 259 |
+
prompt = f"""
|
| 260 |
+
{prompt}
|
| 261 |
+
7. Remember Ice Cream is a food item!
|
| 262 |
+
"""
|
| 263 |
result = self.manager_agent.run(prompt)
|
| 264 |
print(f"Agent responded with: {result}")
|
| 265 |
return result
|