Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,11 +57,9 @@ async def capture_screenshot(image_type: str):
|
|
| 57 |
image_url
|
| 58 |
if image_type:
|
| 59 |
image_url = get_image_url(image_type)
|
| 60 |
-
elif:
|
| 61 |
-
image_url = url
|
| 62 |
else:
|
| 63 |
-
|
| 64 |
-
|
| 65 |
print(f"Opening image from p5 sketch: {image_url}")
|
| 66 |
await page.goto(image_url, timeout=120000) # Wait for the image page to load
|
| 67 |
|
|
|
|
| 57 |
image_url
|
| 58 |
if image_type:
|
| 59 |
image_url = get_image_url(image_type)
|
|
|
|
|
|
|
| 60 |
else:
|
| 61 |
+
image_url = url
|
| 62 |
+
|
| 63 |
print(f"Opening image from p5 sketch: {image_url}")
|
| 64 |
await page.goto(image_url, timeout=120000) # Wait for the image page to load
|
| 65 |
|