Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,10 +16,10 @@ def search_articles(search_term: str, start: int, end: int, output_md: str = "ar
|
|
| 16 |
results within a given range, and saves the output as a Markdown file.
|
| 17 |
|
| 18 |
Args:
|
| 19 |
-
search_term
|
| 20 |
-
start
|
| 21 |
-
end
|
| 22 |
-
output_md
|
| 23 |
|
| 24 |
Returns:
|
| 25 |
str: The absolute path of the generated Markdown file, or an error message if the request fails.
|
|
@@ -77,8 +77,8 @@ def download_articles(article_links: list, save_folder: str = "downloads") -> st
|
|
| 77 |
A tool that downloads articles from arxiv.org given a list of links.
|
| 78 |
|
| 79 |
Args:
|
| 80 |
-
article_links
|
| 81 |
-
save_folder
|
| 82 |
|
| 83 |
Returns:
|
| 84 |
str: Success or error message.
|
|
@@ -123,8 +123,8 @@ def create_zip_package(articles_folder: str, output_zip: str) -> str:
|
|
| 123 |
A tool that packages all downloaded articles (PDFs) from a folder into a zip file.
|
| 124 |
|
| 125 |
Args:
|
| 126 |
-
articles_folder
|
| 127 |
-
output_zip
|
| 128 |
|
| 129 |
Returns:
|
| 130 |
str: Path to the created zip file.
|
|
|
|
| 16 |
results within a given range, and saves the output as a Markdown file.
|
| 17 |
|
| 18 |
Args:
|
| 19 |
+
search_term: The keyword or phrase to search for in ArXiv articles.
|
| 20 |
+
start: The starting index of the search results (used for pagination).
|
| 21 |
+
end: The number of articles to retrieve from the API.
|
| 22 |
+
output_md: The name of the output Markdown file. Defaults to "arxiv_articles.md".
|
| 23 |
|
| 24 |
Returns:
|
| 25 |
str: The absolute path of the generated Markdown file, or an error message if the request fails.
|
|
|
|
| 77 |
A tool that downloads articles from arxiv.org given a list of links.
|
| 78 |
|
| 79 |
Args:
|
| 80 |
+
article_links: List of article links from arXiv.
|
| 81 |
+
save_folder: Folder to save downloaded articles. Default is 'downloads'.
|
| 82 |
|
| 83 |
Returns:
|
| 84 |
str: Success or error message.
|
|
|
|
| 123 |
A tool that packages all downloaded articles (PDFs) from a folder into a zip file.
|
| 124 |
|
| 125 |
Args:
|
| 126 |
+
articles_folder: Folder containing downloaded articles.
|
| 127 |
+
output_zip: The name of the output zip file.
|
| 128 |
|
| 129 |
Returns:
|
| 130 |
str: Path to the created zip file.
|