Spaces:
Sleeping
Sleeping
Update app.py
Browse filestry changing path...
app.py
CHANGED
@@ -79,7 +79,9 @@ async def capture_screenshot():
|
|
79 |
page = await browser.new_page()
|
80 |
|
81 |
print("Opening the p5.js sketch...")
|
82 |
-
|
|
|
|
|
83 |
|
84 |
print("Waiting for page to load fully...")
|
85 |
await page.wait_for_load_state("networkidle") # Ensures all requests finish
|
|
|
79 |
page = await browser.new_page()
|
80 |
|
81 |
print("Opening the p5.js sketch...")
|
82 |
+
#https://raw.githubusercontent.com/your-username/repository-name/branch-name/path/to/image.png
|
83 |
+
|
84 |
+
await page.goto("https://raw.githubusercontent.com/kfahn22/Op-Art/blob/main/assets/gears.jpg", timeout=60000) # Increased timeout
|
85 |
|
86 |
print("Waiting for page to load fully...")
|
87 |
await page.wait_for_load_state("networkidle") # Ensures all requests finish
|