Spaces:
Paused
Paused
Update selimium_try.py
Browse files- selimium_try.py +2 -1
selimium_try.py
CHANGED
|
@@ -70,7 +70,8 @@ def login_to_youtube(page):
|
|
| 70 |
|
| 71 |
def main():
|
| 72 |
with sync_playwright() as p:
|
| 73 |
-
browser = p.chromium.launch(headless=False,
|
|
|
|
| 74 |
context = browser.new_context()
|
| 75 |
page = context.new_page()
|
| 76 |
|
|
|
|
| 70 |
|
| 71 |
def main():
|
| 72 |
with sync_playwright() as p:
|
| 73 |
+
browser = p.chromium.launch(headless=False,
|
| 74 |
+
executable_path="/home/user/.cache/ms-playwright/chromium/chrome-linux/chrome", args=["--no-sandbox"]) # Use --no-sandbox for Hugging Face Spaces
|
| 75 |
context = browser.new_context()
|
| 76 |
page = context.new_page()
|
| 77 |
|