Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
Python
Add Playwright Chromium install step to backend setup
Abi Raja22d02a137a28
diff --git a/README.md b/README.mdindex 778c1707..259f5110 100644--- a/README.md+++ b/README.md@@ -65,6 +65,10 @@ echo "ANTHROPIC_API_KEY=your-key" >> .envecho "GEMINI_API_KEY=your-key" >> .envecho "REPLICATE_API_KEY=r8_your-key" >> .envpoetry install+# Install the Chromium browser used by the screenshot preview tool.+# On Linux, use `poetry run playwright install --with-deps chromium` to also+# install the required system libraries (needs sudo/apt).+poetry run playwright install chromiumpoetry env activate# run the printed command, e.g. source /path/to/venv/bin/activatepoetry run uvicorn main:app --reload --port 7001@@ -72,7 +76,7 @@ poetry run uvicorn main:app --reload --port 7001You can also set up the keys using the settings dialog in the frontend (click the gear icon after loading the app). The Settings dialog also shows whether **screenshot preview** is available on your backend.-> **Screenshot preview** lets the agent render its own generated page in a headless browser and visually check its work. It needs Chromium — run `playwright install chromium` for local setups, or use the Docker image, which installs it automatically.+> **Screenshot preview** (optional) lets the agent render its own generated page in a headless browser and visually check its work. It's enabled automatically once Chromium is installed (the `playwright install chromium` step above, or automatically in the Docker image). If Chromium is missing, the app just skips the tool — the Settings dialog shows whether it's available.Run the frontend: