egarciag commited on
Commit
9eb2a9d
·
verified ·
1 Parent(s): 5aad9d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
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 (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:
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 (list): List of article links from arXiv.
81
- save_folder (str): Folder to save downloaded articles. Default is 'downloads'.
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 (str): Folder containing downloaded articles.
127
- output_zip (str): The name of the output zip file.
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.