pdx97 commited on
Commit
16edca8
·
verified ·
1 Parent(s): 85e3933

Update app.py

Browse files

Stricter keyword search

Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -4,7 +4,7 @@ import yaml
4
  import gradio as gr
5
  from smolagents import CodeAgent, HfApiModel, tool
6
 
7
- @tool
8
  # def fetch_latest_arxiv_papers(keywords: list, num_results: int = 3) -> list:
9
  # """Fetches the latest research papers from arXiv based on provided keywords.
10
 
@@ -49,9 +49,7 @@ from smolagents import CodeAgent, HfApiModel, tool
49
  # print(f"ERROR: {str(e)}") # Debug errors
50
  # return [f"Error fetching research papers: {str(e)}"]
51
 
52
- import feedparser
53
- import urllib.parse
54
-
55
  def fetch_latest_arxiv_papers(keywords: list, num_results: int = 5) -> list:
56
  """Fetches the latest research papers from arXiv based on provided keywords.
57
 
 
4
  import gradio as gr
5
  from smolagents import CodeAgent, HfApiModel, tool
6
 
7
+ # @tool
8
  # def fetch_latest_arxiv_papers(keywords: list, num_results: int = 3) -> list:
9
  # """Fetches the latest research papers from arXiv based on provided keywords.
10
 
 
49
  # print(f"ERROR: {str(e)}") # Debug errors
50
  # return [f"Error fetching research papers: {str(e)}"]
51
 
52
+ @tool
 
 
53
  def fetch_latest_arxiv_papers(keywords: list, num_results: int = 5) -> list:
54
  """Fetches the latest research papers from arXiv based on provided keywords.
55