kfahn commited on
Commit
7e7f20e
·
verified ·
1 Parent(s): 805e6f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -81,13 +81,13 @@ async def capture_screenshot(image_type: str):
81
  page = await browser.new_page()
82
 
83
  #url = "https://openprocessing.org/sketch/2539973"
84
- #url = "https://editor.p5js.org/kfahn/full/2XD5Y8MiV"
85
 
86
  if image_type:
87
  image_url = get_image_url(image_type)
88
  else:
89
  #image_url = url
90
- Return f"No image found"
91
 
92
  print(f"Opening image from p5 sketch: {image_url}")
93
  await page.goto(image_url, timeout=120000) # Wait for the image page to load
 
81
  page = await browser.new_page()
82
 
83
  #url = "https://openprocessing.org/sketch/2539973"
84
+ url = "https://editor.p5js.org/kfahn/full/2XD5Y8MiV"
85
 
86
  if image_type:
87
  image_url = get_image_url(image_type)
88
  else:
89
  #image_url = url
90
+ # Return f"No image found"
91
 
92
  print(f"Opening image from p5 sketch: {image_url}")
93
  await page.goto(image_url, timeout=120000) # Wait for the image page to load