MCPcopy
hub / github.com/huggingface/smolagents / initialize_driver

Function initialize_driver

src/smolagents/vision_web_browser.py:138–145  ·  view source on GitHub ↗

Initialize the Selenium WebDriver.

()

Source from the content-addressed store, hash-verified

136
137
138def initialize_driver():
139 """Initialize the Selenium WebDriver."""
140 chrome_options = webdriver.ChromeOptions()
141 chrome_options.add_argument("--force-device-scale-factor=1")
142 chrome_options.add_argument("--window-size=1000,1350")
143 chrome_options.add_argument("--disable-pdf-viewer")
144 chrome_options.add_argument("--window-position=0,0")
145 return helium.start_chrome(headless=False, options=chrome_options)
146
147
148def initialize_agent(model):

Callers 1

run_webagentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…