Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ import time
|
|
16 |
|
17 |
|
18 |
@tool
|
19 |
-
def show_image(image : PIL.Image.Image )
|
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:
|
@@ -34,7 +34,7 @@ def show_image(image : PIL.Image.Image ): #it's import to specify the return typ
|
|
34 |
# If none of the above, you'll need to investigate further
|
35 |
print("Could not directly convert. Check the object's attributes and methods.")
|
36 |
# For example, print(dir(agent_image)) to see what's available
|
37 |
-
|
38 |
|
39 |
@tool
|
40 |
def browsing_tool_fetch_content(url: str, query_context: str) -> str:
|
|
|
16 |
|
17 |
|
18 |
@tool
|
19 |
+
def show_image(image : PIL.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:
|
|
|
34 |
# If none of the above, you'll need to investigate further
|
35 |
print("Could not directly convert. Check the object's attributes and methods.")
|
36 |
# For example, print(dir(agent_image)) to see what's available
|
37 |
+
return "image showed successfully!"
|
38 |
|
39 |
@tool
|
40 |
def browsing_tool_fetch_content(url: str, query_context: str) -> str:
|