Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,14 +56,12 @@ async def capture_screenshot():
|
|
| 56 |
print("Screenshot saved!")
|
| 57 |
|
| 58 |
@tool
|
| 59 |
-
def grab_image():
|
| 60 |
"""
|
| 61 |
Fetches an op art image from a p5.js sketch.
|
| 62 |
This function sends uses Playwright to launch a headless server and grab a screenshot of a p5.js sketch.
|
| 63 |
-
|
| 64 |
Returns:
|
| 65 |
-
|
| 66 |
-
image: the screen shot of the p5.js sketch as an image
|
| 67 |
"""
|
| 68 |
print("Running async Playwright screenshot...")
|
| 69 |
|
|
|
|
| 56 |
print("Screenshot saved!")
|
| 57 |
|
| 58 |
@tool
|
| 59 |
+
def grab_image(): -> image:
|
| 60 |
"""
|
| 61 |
Fetches an op art image from a p5.js sketch.
|
| 62 |
This function sends uses Playwright to launch a headless server and grab a screenshot of a p5.js sketch.
|
|
|
|
| 63 |
Returns:
|
| 64 |
+
image: The screen shot of the p5.js sketch as an image.
|
|
|
|
| 65 |
"""
|
| 66 |
print("Running async Playwright screenshot...")
|
| 67 |
|