Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,15 +15,15 @@ import time
|
|
15 |
|
16 |
|
17 |
|
18 |
-
@tool
|
19 |
-
def show_image(image : Image.Image )-> str :#it's import to specify the return type
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
|
28 |
@tool
|
29 |
def browsing_tool_fetch_content(url: str, query_context: str) -> str:
|
@@ -199,7 +199,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
199 |
|
200 |
agent = CodeAgent(
|
201 |
model=gemini_model,
|
202 |
-
tools=[final_answer,get_current_time_in_timezone, search_tool, web_visit, image_generation_tool
|
203 |
max_steps=6,
|
204 |
verbosity_level=1,
|
205 |
grammar=None,
|
|
|
15 |
|
16 |
|
17 |
|
18 |
+
# @tool
|
19 |
+
# def show_image(image : Image.Image )-> str :#it's import to specify the return type
|
20 |
+
# #Keep this format for the description / args / args description but feel free to modify the tool
|
21 |
+
# """A tool that shows image generated by image_generation_tool
|
22 |
+
# Args:
|
23 |
+
# image: the input image with the original type
|
24 |
+
# """
|
25 |
+
# image.show()
|
26 |
+
# return "image showed successfully!"
|
27 |
|
28 |
@tool
|
29 |
def browsing_tool_fetch_content(url: str, query_context: str) -> str:
|
|
|
199 |
|
200 |
agent = CodeAgent(
|
201 |
model=gemini_model,
|
202 |
+
tools=[final_answer,get_current_time_in_timezone, search_tool, web_visit, image_generation_tool], ## add your tools here (don't remove final answer)
|
203 |
max_steps=6,
|
204 |
verbosity_level=1,
|
205 |
grammar=None,
|