Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -328,9 +328,19 @@ summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
|
|
| 328 |
@tool
|
| 329 |
def fetch_latest_arxiv_papers(keywords: list, num_results: int = 5) -> list:
|
| 330 |
|
|
|
|
| 331 |
"""
|
| 332 |
-
Fetches and ranks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 333 |
"""
|
|
|
|
|
|
|
| 334 |
|
| 335 |
|
| 336 |
try:
|
|
|
|
| 328 |
@tool
|
| 329 |
def fetch_latest_arxiv_papers(keywords: list, num_results: int = 5) -> list:
|
| 330 |
|
| 331 |
+
|
| 332 |
"""
|
| 333 |
+
Fetches and ranks arXiv papers using TF-IDF and Cosine Similarity.
|
| 334 |
+
|
| 335 |
+
Args:
|
| 336 |
+
keywords: List of keywords for search.
|
| 337 |
+
num_results: Number of results to return.
|
| 338 |
+
|
| 339 |
+
Returns:
|
| 340 |
+
List of the most relevant papers based on TF-IDF ranking.
|
| 341 |
"""
|
| 342 |
+
|
| 343 |
+
|
| 344 |
|
| 345 |
|
| 346 |
try:
|