WeByT3 commited on
Commit
9f1c559
·
verified ·
1 Parent(s): 4ddfcdd

Update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +1 -1
tools.py CHANGED
@@ -79,7 +79,7 @@ def search_wikipedia(page_title: str, language: str) -> str:
79
 
80
  for i, table in enumerate(tables):
81
  if isinstance(table, pd.DataFrame):
82
- markdown = table.to_markdown(index=False)
83
  markdown_tables.append(f"\n---\n**Table {i + 1}:**\n{markdown}")
84
 
85
  table_output = "\n".join(markdown_tables) if markdown_tables else "No tables found on this page."
 
79
 
80
  for i, table in enumerate(tables):
81
  if isinstance(table, pd.DataFrame):
82
+ markdown = table.head(15).to_markdown(index=False)
83
  markdown_tables.append(f"\n---\n**Table {i + 1}:**\n{markdown}")
84
 
85
  table_output = "\n".join(markdown_tables) if markdown_tables else "No tables found on this page."