Spaces:
Sleeping
Sleeping
08.09.2025
Browse files- a_tools.py +2 -3
a_tools.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
-
from smolagents import Tool, FinalAnswerTool
|
| 2 |
-
from langchain_community.agent_toolkits.load_tools import load_tools
|
| 3 |
|
| 4 |
image_generation_tool = Tool.from_space(
|
| 5 |
"black-forest-labs/FLUX.1-schnell",
|
|
@@ -7,6 +6,6 @@ image_generation_tool = Tool.from_space(
|
|
| 7 |
description="Generate an image from a prompt"
|
| 8 |
)
|
| 9 |
|
| 10 |
-
search_tool =
|
| 11 |
|
| 12 |
final_answer = FinalAnswerTool()
|
|
|
|
| 1 |
+
from smolagents import Tool, FinalAnswerTool, WebSearchTool
|
|
|
|
| 2 |
|
| 3 |
image_generation_tool = Tool.from_space(
|
| 4 |
"black-forest-labs/FLUX.1-schnell",
|
|
|
|
| 6 |
description="Generate an image from a prompt"
|
| 7 |
)
|
| 8 |
|
| 9 |
+
search_tool = WebSearchTool()
|
| 10 |
|
| 11 |
final_answer = FinalAnswerTool()
|