Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,13 +12,13 @@ from Gradio_UI import GradioUI
|
|
| 12 |
@tool
|
| 13 |
def search_articles(text2search: str, start: int, end: int, output_md: str = "arxiv_articles.md") -> str:
|
| 14 |
"""
|
| 15 |
-
|
| 16 |
-
as a Markdown file.
|
| 17 |
|
| 18 |
Args:
|
| 19 |
text2search (str): The keyword or phrase to search for in ArXiv articles.
|
| 20 |
start (int): The starting index of the search results (used for pagination).
|
| 21 |
-
end (int): The
|
| 22 |
output_md (str, optional): The name of the output Markdown file. Defaults to "arxiv_articles.md".
|
| 23 |
|
| 24 |
Returns:
|
|
|
|
| 12 |
@tool
|
| 13 |
def search_articles(text2search: str, start: int, end: int, output_md: str = "arxiv_articles.md") -> str:
|
| 14 |
"""
|
| 15 |
+
Searches for academic articles on arxiv.org using a given search term, retrieves
|
| 16 |
+
results within a given range, and saves the output as a Markdown file.
|
| 17 |
|
| 18 |
Args:
|
| 19 |
text2search (str): The keyword or phrase to search for in ArXiv articles.
|
| 20 |
start (int): The starting index of the search results (used for pagination).
|
| 21 |
+
end (int): The number of articles to retrieve from the API.
|
| 22 |
output_md (str, optional): The name of the output Markdown file. Defaults to "arxiv_articles.md".
|
| 23 |
|
| 24 |
Returns:
|