INNER CODE UNIT · Python
selenium
handrew/browserpilot · examples.py:20
def selenium(instructions, chromedriver_path, model, memory_folder, debug, output):
with open(instructions, "r") as instructions:
agent = GPTSeleniumAgent(
instructions,
chromedriver_path,
instruction_output_file=output,
model_for_instructions=model,
memory_folder=memory_folder,
debug=debug,
retry=True,
disable_danger_check=True
)
agent.run()
"""🤫
@cli.command()
@click.option("--instructions", default=None, help="Instructions file.")
@click.option("--memory_folder", is_flag=True, help="Enable memory.")