Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,8 @@
|
|
1 |
-
pip install whois
|
2 |
-
|
3 |
from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
|
4 |
import datetime
|
5 |
import requests
|
6 |
import pytz
|
7 |
import yaml
|
8 |
-
import whois
|
9 |
from tools.final_answer import FinalAnswerTool
|
10 |
|
11 |
from Gradio_UI import GradioUI
|
@@ -14,9 +11,14 @@ from Gradio_UI import GradioUI
|
|
14 |
@tool
|
15 |
def get_domain_ip(domain:str)-> str: #it's important to specify the return type
|
16 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
17 |
-
"""
|
|
|
|
|
18 |
Args:
|
19 |
-
domain: A string representing a valid domain name (e.g., 'google.com or www.google.co').
|
|
|
|
|
|
|
20 |
"""
|
21 |
try:
|
22 |
# Create a domain object
|
|
|
|
|
|
|
1 |
from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
|
2 |
import datetime
|
3 |
import requests
|
4 |
import pytz
|
5 |
import yaml
|
|
|
6 |
from tools.final_answer import FinalAnswerTool
|
7 |
|
8 |
from Gradio_UI import GradioUI
|
|
|
11 |
@tool
|
12 |
def get_domain_ip(domain:str)-> str: #it's important to specify the return type
|
13 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
14 |
+
"""
|
15 |
+
A tool that retrieves WHOIS information for a given domain, including registrant and technical contact details.
|
16 |
+
|
17 |
Args:
|
18 |
+
domain: A string representing a valid domain name (e.g., 'google.com or www.google.co') to look up.
|
19 |
+
|
20 |
+
Returns:
|
21 |
+
A formatted string containing the domain's WHOIS information.
|
22 |
"""
|
23 |
try:
|
24 |
# Create a domain object
|