Download app/agents/browser_visual.py from Madras1/Lancer: direct link, hf CLI and curl.
- Browser
- Download file 596 Bytes
-
https://huggingface.co/spaces/Madras1/Lancer/resolve/main/app/agents/browser_visual.py
- Command line
-
hf download hf://spaces/Madras1/Lancer/app/agents/browser_visual.py
-
curl -L -o browser_visual.py https://huggingface.co/spaces/Madras1/Lancer/resolve/main/app/agents/browser_visual.py
596 Bytes
| """Visual Browser Use agent backed by one streamed Chromium session.""" | |
| from __future__ import annotations | |
| from typing import AsyncGenerator, Optional | |
| from app.agents.browser_runtime import run_persistent_browser_agent | |
| async def run_browser_visual_agent( | |
| task: str, | |
| url: Optional[str] = None, | |
| *, | |
| research_depth: str = "normal", | |
| ) -> AsyncGenerator[dict, None]: | |
| """Let Browser Use research through persistent visible Chromium.""" | |
| async for event in run_persistent_browser_agent( | |
| task, url, visual=True, research_depth=research_depth | |
| ): | |
| yield event | |