pdx97 commited on
Commit
91e81c9
·
verified ·
1 Parent(s): 47b1f89

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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 to search for relevant research papers.
335
- num_results (int, optional): The number of top-ranked papers to return. Defaults to 5.
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])