kfahn commited on
Commit
8bd0985
·
verified ·
1 Parent(s): 9b095c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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
- Return: f"Unable to fetch image"
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