Spaces:
Sleeping
Sleeping
fixing doc string
Browse files
app.py
CHANGED
@@ -22,7 +22,12 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
22 |
|
23 |
@tool
|
24 |
def arxiv_fetch_paper_tool(arxiv_id : str) -> str:
|
25 |
-
""" An Tool that would fetch research papers from ArXiV collection and parse it and return the PDF text
|
|
|
|
|
|
|
|
|
|
|
26 |
loader = ArxivLoader(query=arxiv_id)
|
27 |
docs = loader.load()
|
28 |
title = docs[0].metadata.get("title", "this paper")
|
|
|
22 |
|
23 |
@tool
|
24 |
def arxiv_fetch_paper_tool(arxiv_id : str) -> str:
|
25 |
+
""" An Tool that would fetch research papers from ArXiV collection and parse it and return the PDF text
|
26 |
+
Args:
|
27 |
+
arxiv_id : id for the arxiv paper
|
28 |
+
Returns:
|
29 |
+
text of the paper content and title of the paper
|
30 |
+
"""
|
31 |
loader = ArxivLoader(query=arxiv_id)
|
32 |
docs = loader.load()
|
33 |
title = docs[0].metadata.get("title", "this paper")
|