mohammadKa143 commited on
Commit
dfb3382
·
verified ·
1 Parent(s): be56511

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,7 +16,7 @@ import time
16
 
17
 
18
  @tool
19
- def show_image(image : PIL.Image.Image ): #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,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: