Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -331,8 +331,8 @@ def fetch_latest_arxiv_papers(keywords: list, num_results: int = 5) -> list:
|
|
331 |
Fetches and ranks research papers from ArXiv using TF-IDF and Cosine Similarity.
|
332 |
|
333 |
Args:
|
334 |
-
keywords (list): A list of keywords
|
335 |
-
num_results (int
|
336 |
|
337 |
Returns:
|
338 |
list: A list of dictionaries containing:
|
@@ -341,9 +341,8 @@ def fetch_latest_arxiv_papers(keywords: list, num_results: int = 5) -> list:
|
|
341 |
- "year" (str): The year of publication.
|
342 |
- "abstract" (str): A summary of the paper.
|
343 |
- "link" (str): A URL to the full paper.
|
344 |
-
- "citations" (int): Number of citations (from Semantic Scholar).
|
345 |
-
- "summary" (str): A GPT-generated summary of the abstract.
|
346 |
"""
|
|
|
347 |
try:
|
348 |
# ✅ Construct the query for ArXiv API
|
349 |
query = "+AND+".join([f"all:{kw}" for kw in keywords])
|
|
|
331 |
Fetches and ranks research papers from ArXiv using TF-IDF and Cosine Similarity.
|
332 |
|
333 |
Args:
|
334 |
+
keywords (list): A list of keywords for search.
|
335 |
+
num_results (int): Number of results to return (default = 5).
|
336 |
|
337 |
Returns:
|
338 |
list: A list of dictionaries containing:
|
|
|
341 |
- "year" (str): The year of publication.
|
342 |
- "abstract" (str): A summary of the paper.
|
343 |
- "link" (str): A URL to the full paper.
|
|
|
|
|
344 |
"""
|
345 |
+
|
346 |
try:
|
347 |
# ✅ Construct the query for ArXiv API
|
348 |
query = "+AND+".join([f"all:{kw}" for kw in keywords])
|