nandkumar's picture

nandkumar

nandughatge

AI & ML interests

AI model fine tunning

Recent Activity

Organizations

None yet

nandughatge's activity

commented on We now support VLMs in smolagents! 4 days ago
view reply

accept cookie popup.

@tool
def accept_cookie_popup() -> str:
"""
accept any visible cookie consent banners.
"""
wait = WebDriverWait(driver, timeout=0.5)
elements = wait.until(EC.presence_of_all_elements_located((By.ID, "onetrust-accept-btn-handler")))
elements[0].click()

agent = CodeAgent(
tools=[go_back, close_popups, search_item_ctrl_f, close_cookie_popup],
model=model,
additional_authorized_imports=["helium"],
step_callbacks=[save_screenshot],
max_steps=20,
verbosity_level=2,
)