Spaces:
Running
Running
Update app.py
Browse filesStricter keyword search
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 |
-
|
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 |
|