kfahn commited on
Commit
f0b59ad
·
verified ·
1 Parent(s): c5a5d17

Update app.py

Browse files

update description in tool to see if the agent will return an image if I ask what it looks like

Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -102,10 +102,12 @@ async def capture_screenshot(image_type: str):
102
  @tool
103
  def grab_image(image_type: str) -> Image:
104
  """
105
- Fetches an op art image from a p5.js sketch.
 
106
  This function sends uses Playwright to launch a headless server and grab a screenshot of a p5.js sketch.
107
  Args:
108
- image_type: A geneerate art type
 
109
  Returns:
110
  image: The screen shot of the p5.js sketch as an image.
111
  """
 
102
  @tool
103
  def grab_image(image_type: str) -> Image:
104
  """
105
+ Fetches an user specified image or generative object from a p5.js sketch.
106
+ This tool can be used to show a user what the generative art looks like.
107
  This function sends uses Playwright to launch a headless server and grab a screenshot of a p5.js sketch.
108
  Args:
109
+ image_type: The art type or generative object.
110
+
111
  Returns:
112
  image: The screen shot of the p5.js sketch as an image.
113
  """