Spaces:
Sleeping
Sleeping
take out find image online tool
Browse files
app.py
CHANGED
@@ -6,7 +6,6 @@ import yaml
|
|
6 |
from tools.final_answer import FinalAnswerTool
|
7 |
from tools.web_search import DuckDuckGoSearchTool
|
8 |
from tools.visit_webpage import VisitWebpageTool
|
9 |
-
from tools.find_image_online import FindImageOnlineTool
|
10 |
from Gradio_UI import GradioUI
|
11 |
|
12 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
@@ -58,15 +57,6 @@ image_generation_tool = Tool.from_space(
|
|
58 |
description="Generate an image from a text prompt. The prompt should be detailed to create high-quality images."
|
59 |
)
|
60 |
|
61 |
-
# Create web search and visit webpage tools
|
62 |
-
web_search_tool = DuckDuckGoSearchTool(max_results=5)
|
63 |
-
visit_webpage_tool = VisitWebpageTool()
|
64 |
-
|
65 |
-
# Create the find image online tool with dependencies
|
66 |
-
find_image_tool = FindImageOnlineTool(
|
67 |
-
web_search_tool=web_search_tool,
|
68 |
-
visit_webpage_tool=visit_webpage_tool
|
69 |
-
)
|
70 |
|
71 |
# Final answer tool
|
72 |
final_answer = FinalAnswerTool()
|
@@ -79,9 +69,6 @@ agent = CodeAgent(
|
|
79 |
tools=[
|
80 |
final_answer,
|
81 |
image_generation_tool,
|
82 |
-
web_search_tool,
|
83 |
-
visit_webpage_tool,
|
84 |
-
find_image_tool,
|
85 |
get_current_time_in_timezone
|
86 |
],
|
87 |
max_steps=6,
|
|
|
6 |
from tools.final_answer import FinalAnswerTool
|
7 |
from tools.web_search import DuckDuckGoSearchTool
|
8 |
from tools.visit_webpage import VisitWebpageTool
|
|
|
9 |
from Gradio_UI import GradioUI
|
10 |
|
11 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
|
|
57 |
description="Generate an image from a text prompt. The prompt should be detailed to create high-quality images."
|
58 |
)
|
59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
|
61 |
# Final answer tool
|
62 |
final_answer = FinalAnswerTool()
|
|
|
69 |
tools=[
|
70 |
final_answer,
|
71 |
image_generation_tool,
|
|
|
|
|
|
|
72 |
get_current_time_in_timezone
|
73 |
],
|
74 |
max_steps=6,
|