Spaces:
Sleeping
Sleeping
Update app.py
Browse filesupdate description in tool to see if the agent will return an image if I ask what it looks like
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
|
|
|
|
| 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:
|
|
|
|
| 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 |
"""
|