Spaces:
Sleeping
Sleeping
Update tools.py
Browse files
tools.py
CHANGED
|
@@ -83,7 +83,7 @@ def search_wikipedia(page_title: str, language: str) -> str:
|
|
| 83 |
|
| 84 |
for i, table in enumerate(tables):
|
| 85 |
if isinstance(table, pd.DataFrame):
|
| 86 |
-
markdown = table.iloc[:
|
| 87 |
markdown_tables.append(f"\n---\n**Table {i + 1}:**\n{markdown}")
|
| 88 |
|
| 89 |
table_output = "\n".join(markdown_tables) if markdown_tables else "No tables found on this page."
|
|
|
|
| 83 |
|
| 84 |
for i, table in enumerate(tables):
|
| 85 |
if isinstance(table, pd.DataFrame):
|
| 86 |
+
markdown = table.iloc[:20, :3].to_markdown(index=False)
|
| 87 |
markdown_tables.append(f"\n---\n**Table {i + 1}:**\n{markdown}")
|
| 88 |
|
| 89 |
table_output = "\n".join(markdown_tables) if markdown_tables else "No tables found on this page."
|