Update app.py
Browse files
app.py
CHANGED
|
@@ -23,6 +23,7 @@ def ensure_playwright():
|
|
| 23 |
print("Installing playwright for PDF generation...")
|
| 24 |
subprocess.check_call([sys.executable, "-m", "pip", "install", "playwright"])
|
| 25 |
subprocess.check_call([sys.executable, "-m", "playwright", "install", "chromium"])
|
|
|
|
| 26 |
from playwright.sync_api import sync_playwright
|
| 27 |
return True
|
| 28 |
|
|
|
|
| 23 |
print("Installing playwright for PDF generation...")
|
| 24 |
subprocess.check_call([sys.executable, "-m", "pip", "install", "playwright"])
|
| 25 |
subprocess.check_call([sys.executable, "-m", "playwright", "install", "chromium"])
|
| 26 |
+
subprocess.check_call([sys.executable, "-m", "playwright", "install", "install-deps"])
|
| 27 |
from playwright.sync_api import sync_playwright
|
| 28 |
return True
|
| 29 |
|