Spaces:
Running
Running
Update app.py
Browse filesAdded Docstring
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":
|
339 |
-
- "year":
|
340 |
-
- "abstract":
|
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])
|