pdx97 commited on
Commit
32f1a74
·
verified ·
1 Parent(s): 0d55049

Update app.py

Browse files

Added Docstring

Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -330,15 +330,15 @@ def fetch_latest_arxiv_papers(keywords: list, num_results: int = 5) -> list:
330
 
331
  Args:
332
  keywords (list): A list of keywords to search for relevant research papers.
333
- num_results (int): The number of top-ranked papers to return.
334
 
335
  Returns:
336
  list: A list of dictionaries containing:
337
- - "title": The title of the paper.
338
- - "authors": Authors of the paper.
339
- - "year": Year of publication.
340
- - "abstract": Short summary of the paper.
341
- - "link": URL to the full paper.
342
  """
343
  try:
344
  query = "+AND+".join([f"all:{kw}" for kw in keywords])
 
330
 
331
  Args:
332
  keywords (list): A list of keywords to search for relevant research papers.
333
+ num_results (int, optional): The number of top-ranked papers to return. Defaults to 5.
334
 
335
  Returns:
336
  list: A list of dictionaries containing:
337
+ - "title" (str): The title of the paper.
338
+ - "authors" (str): The authors of the paper.
339
+ - "year" (str): The year of publication.
340
+ - "abstract" (str): A summary of the paper.
341
+ - "link" (str): A URL to the full paper.
342
  """
343
  try:
344
  query = "+AND+".join([f"all:{kw}" for kw in keywords])