jbo-tech commited on
Commit
16996c5
·
verified ·
1 Parent(s): 84fab11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -7,16 +7,14 @@ from tools.final_answer import FinalAnswerTool
7
 
8
  from Gradio_UI import GradioUI
9
 
10
- import json
11
-
12
  @tool
13
- def website_info(url: str) -> str:
14
  """A tool that gets info from a website
15
  Args :
16
- url: The url you want to get info from
17
  """
18
  api = 'https://api.microlink.io'
19
- params = {'url': url}
20
  response = requests.get(api, params)
21
  return response
22
 
 
7
 
8
  from Gradio_UI import GradioUI
9
 
 
 
10
  @tool
11
+ def website_info(website: str) -> str:
12
  """A tool that gets info from a website
13
  Args :
14
+ website: The url you want to get info from
15
  """
16
  api = 'https://api.microlink.io'
17
+ params = {'url': website}
18
  response = requests.get(api, params)
19
  return response
20