ChIrish06 commited on
Commit
1eaed3f
·
verified ·
1 Parent(s): 6bab3bb

Update app.py

Browse files

Correcting output of webpage contents to be bytes

Files changed (1) hide show
  1. app.py +1 -1
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)-> str: #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.
 
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.