Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ def search_wikipedia_pages(search_string: str) -> List[str]:
|
|
| 27 |
print (f"An error occured {s_error}")
|
| 28 |
|
| 29 |
@tool
|
| 30 |
-
def get_wikipedia_page_content(page_name: str, p_summary
|
| 31 |
"""This tool helps to get the content of wikipedia pages by their name.
|
| 32 |
If you use this tool based on the output of search_wikipedia_pages
|
| 33 |
than remember to try a next string that was the output of search_wikipedia_pages if you get a error: Page id
|
|
|
|
| 27 |
print (f"An error occured {s_error}")
|
| 28 |
|
| 29 |
@tool
|
| 30 |
+
def get_wikipedia_page_content(page_name: str, p_summary: bool = True) -> str:
|
| 31 |
"""This tool helps to get the content of wikipedia pages by their name.
|
| 32 |
If you use this tool based on the output of search_wikipedia_pages
|
| 33 |
than remember to try a next string that was the output of search_wikipedia_pages if you get a error: Page id
|