#!/usr/bin/env bash set -e # Install Playwright Chromium into the runtime user's cache path so that # the same path is used at runtime by Playwright default lookup. export PLAYWRIGHT_BROWSERS_PATH=/home/user/.cache/ms-playwright # Skip host requirement validation (no root on HF Spaces) export PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS=1 python -m playwright install chromium