Spaces:
Sleeping
Sleeping
Update tools.py
Browse files
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.head(
|
| 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(10).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."
|