AryanCodesDS commited on
Commit
4a984d7
·
verified ·
1 Parent(s): 9bb1215

Update app.py

Browse files

>some minor changes in tool code

Files changed (1) hide show
  1. app.py +1 -1
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=1'
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