Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
| 14 |
"""A tool that gets info from a website
|
| 15 |
Args :
|
| 16 |
-
|
| 17 |
"""
|
| 18 |
api = 'https://api.microlink.io'
|
| 19 |
-
params = {'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 |
|