Spaces:
Sleeping
Sleeping
Delete setup.py
Browse files
setup.py
DELETED
|
@@ -1,11 +0,0 @@
|
|
| 1 |
-
import asyncio
|
| 2 |
-
from playwright.async_api import async_playwright
|
| 3 |
-
|
| 4 |
-
async def install_browsers():
|
| 5 |
-
async with async_playwright() as p:
|
| 6 |
-
await p.install()
|
| 7 |
-
|
| 8 |
-
# Run the installer during setup
|
| 9 |
-
if sys.platform == "win32":
|
| 10 |
-
asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())
|
| 11 |
-
asyncio.run(install_browsers())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|