Iterating on DuckDuckGoSearchTool
Browse files
app.py
CHANGED
@@ -60,11 +60,13 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
60 |
|
61 |
final_answer = FinalAnswerTool()
|
62 |
|
|
|
|
|
63 |
# Import tool from Hub
|
64 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True) ## https://huggingface.co/spaces/agents-course/text-to-image
|
65 |
|
66 |
# Create a list of the tools available to the agent - (don't remove final answer)
|
67 |
-
tool_list = [final_answer, get_current_time_in_timezone, image_generation_tool, toss_a_die, available_tools,
|
68 |
|
69 |
MODEL_IDS = [
|
70 |
#'https://wxknx1kg971u7k1n.us-east-1.aws.endpoints.huggingface.cloud/',
|
|
|
60 |
|
61 |
final_answer = FinalAnswerTool()
|
62 |
|
63 |
+
web_search() = DuckDuckGoSearchTool()
|
64 |
+
|
65 |
# Import tool from Hub
|
66 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True) ## https://huggingface.co/spaces/agents-course/text-to-image
|
67 |
|
68 |
# Create a list of the tools available to the agent - (don't remove final answer)
|
69 |
+
tool_list = [final_answer, get_current_time_in_timezone, image_generation_tool, toss_a_die, available_tools, web_search]
|
70 |
|
71 |
MODEL_IDS = [
|
72 |
#'https://wxknx1kg971u7k1n.us-east-1.aws.endpoints.huggingface.cloud/',
|