Spaces:
Sleeping
Sleeping
cumsock nigga
Browse files
app.py
CHANGED
|
@@ -254,8 +254,13 @@ def seek():
|
|
| 254 |
}
|
| 255 |
# Use Playwright to handle redirects and wait for page to load
|
| 256 |
with sync_playwright() as p:
|
| 257 |
-
# Use the known working Chrome executable path (for
|
| 258 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 259 |
print(f"Using Chrome executable: {executable_path}")
|
| 260 |
|
| 261 |
browser = p.chromium.launch(
|
|
|
|
| 254 |
}
|
| 255 |
# Use Playwright to handle redirects and wait for page to load
|
| 256 |
with sync_playwright() as p:
|
| 257 |
+
# Use the known working Chrome executable path (for root user)
|
| 258 |
+
import glob
|
| 259 |
+
chrome_paths = glob.glob("/root/.cache/ms-playwright/chromium-*/chrome-linux/chrome")
|
| 260 |
+
if not chrome_paths:
|
| 261 |
+
raise Exception("Chrome executable not found in /root/.cache/ms-playwright/")
|
| 262 |
+
|
| 263 |
+
executable_path = chrome_paths[0]
|
| 264 |
print(f"Using Chrome executable: {executable_path}")
|
| 265 |
|
| 266 |
browser = p.chromium.launch(
|