Thanh Vinh Vo commited on
Commit
ad240b3
·
1 Parent(s): 84b65c7
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -327,7 +327,9 @@ class BasicAgent:
327
  - Please answer as concisely as possible.
328
  - If the question asks for a number, please return a numerical answer without unit (unless unit is specifically asked for). For example: 3 instead of three, 0 instead of None, 3 instead of $3.
329
  - 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.
330
- - `pandas` Python package is available for (but not limited to) searching and extracting data from HTML content, it is VERY useful for extracting data from Wikipedia page content.
 
 
331
  - 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`.
332
  - If the question asks for name without abbreviations, please ALWAYS ask `multimodal_agent` for the FULL name of final answer to ensure NO abbreviation is included in Final Answer. For example: `United States` instead of `US`.
333
  """
 
327
  - Please answer as concisely as possible.
328
  - If the question asks for a number, please return a numerical answer without unit (unless unit is specifically asked for). For example: 3 instead of three, 0 instead of None, 3 instead of $3.
329
  - 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.
330
+ - To get table data from Wikipedia or any HTML page content, please follow the following steps:
331
+ - 1. Identify the section you want to extract.
332
+ - 2.Use `pandas.read_html` to extract the table data from that section.
333
  - 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`.
334
  - If the question asks for name without abbreviations, please ALWAYS ask `multimodal_agent` for the FULL name of final answer to ensure NO abbreviation is included in Final Answer. For example: `United States` instead of `US`.
335
  """