Spaces:
Sleeping
Sleeping
Update tools.py
Browse files
tools.py
CHANGED
|
@@ -85,7 +85,7 @@ def search_wikipedia(page_title: str, language: str) -> str:
|
|
| 85 |
|
| 86 |
table_output = "\n".join(markdown_tables) if markdown_tables else "No tables found on this page."
|
| 87 |
|
| 88 |
-
return f"Title: {page.title}\n\nText: {page.summary}\n\n{table_output}"
|
| 89 |
|
| 90 |
except Exception as e:
|
| 91 |
return f"Error retrieving Wikipedia content: {str(e)}"
|
|
|
|
| 85 |
|
| 86 |
table_output = "\n".join(markdown_tables) if markdown_tables else "No tables found on this page."
|
| 87 |
|
| 88 |
+
return f"Title: {page.title}\n\nText: {page.summary[:200]}\n\n{table_output}"
|
| 89 |
|
| 90 |
except Exception as e:
|
| 91 |
return f"Error retrieving Wikipedia content: {str(e)}"
|