Support PLAYWRIGHT_WS_URI

This commit is contained in:
Rory
2025-02-02 17:58:09 -06:00
parent a84e488a4e
commit 8da33721d5
5 changed files with 97 additions and 48 deletions

View File

@@ -5,9 +5,11 @@ cd "$SCRIPT_DIR" || exit
# Add conditional Playwright browser installation
if [[ "${RAG_WEB_LOADER,,}" == "playwright" ]]; then
echo "Installing Playwright browsers..."
playwright install chromium
playwright install-deps chromium
if [[ -z "${PLAYWRIGHT_WS_URI}" ]]; then
echo "Installing Playwright browsers..."
playwright install chromium
playwright install-deps chromium
fi
python -c "import nltk; nltk.download('punkt_tab')"
fi