Spaces:
Sleeping
Sleeping
Update app.py
Browse files>some minor changes in tool code
app.py
CHANGED
|
@@ -17,7 +17,7 @@ def my_arxiv_tool(keyword:str, n:int)-> str: #it's import to specify the return
|
|
| 17 |
keyword:a keyword related to research paper.
|
| 18 |
n: number of research papers.
|
| 19 |
"""
|
| 20 |
-
url = f'http://export.arxiv.org/api/query?search_query=all:{keyword}&year=2002&start=0&max_results=
|
| 21 |
data = urllib.request.urlopen(url)
|
| 22 |
xml_string = data.read().decode('utf-8')
|
| 23 |
|
|
|
|
| 17 |
keyword:a keyword related to research paper.
|
| 18 |
n: number of research papers.
|
| 19 |
"""
|
| 20 |
+
url = f'http://export.arxiv.org/api/query?search_query=all:{keyword}&year=2002&start=0&max_results={n}'
|
| 21 |
data = urllib.request.urlopen(url)
|
| 22 |
xml_string = data.read().decode('utf-8')
|
| 23 |
|