Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -327,22 +327,9 @@ summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
|
|
| 327 |
|
| 328 |
@tool
|
| 329 |
def fetch_latest_arxiv_papers(keywords: list, num_results: int = 5) -> list:
|
|
|
|
| 330 |
"""
|
| 331 |
Fetches and ranks research papers from ArXiv using TF-IDF and Cosine Similarity.
|
| 332 |
-
|
| 333 |
-
Args:
|
| 334 |
-
keywords (list[str]): A list of keywords to search for relevant research papers.
|
| 335 |
-
num_results (int): The number of top-ranked papers to return. Defaults to 5.
|
| 336 |
-
|
| 337 |
-
Returns:
|
| 338 |
-
list[dict]: A list of dictionaries containing:
|
| 339 |
-
- "title" (str): The title of the paper.
|
| 340 |
-
- "authors" (str): The authors of the paper.
|
| 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): The citation count of the paper.
|
| 345 |
-
- "summary" (str): A GPT-generated summary of the abstract.
|
| 346 |
"""
|
| 347 |
|
| 348 |
|
|
|
|
| 327 |
|
| 328 |
@tool
|
| 329 |
def fetch_latest_arxiv_papers(keywords: list, num_results: int = 5) -> list:
|
| 330 |
+
|
| 331 |
"""
|
| 332 |
Fetches and ranks research papers from ArXiv using TF-IDF and Cosine Similarity.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 333 |
"""
|
| 334 |
|
| 335 |
|