Spaces:
Sleeping
Sleeping
Create setup.py
Browse files
setup.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
asyncio.run(install_browsers())
|