Spaces:
Running
Running
Update app.py
Browse filesCorrecting output of webpage contents to be bytes
app.py
CHANGED
@@ -24,7 +24,7 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
24 |
|
25 |
# Creating an example function to get data from a website of my choice
|
26 |
@tool
|
27 |
-
def webpage_contents_get(url:str, headers_in: dict = None)->
|
28 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
29 |
"""A simple function to grab contents of a webpage. As this is very long and not easily interpretable,
|
30 |
summaries based on other tools applied to this content should be returned to users with questions.
|
|
|
24 |
|
25 |
# Creating an example function to get data from a website of my choice
|
26 |
@tool
|
27 |
+
def webpage_contents_get(url:str, headers_in: dict = None)-> bytes: #it's import to specify the return type
|
28 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
29 |
"""A simple function to grab contents of a webpage. As this is very long and not easily interpretable,
|
30 |
summaries based on other tools applied to this content should be returned to users with questions.
|