Skip to main content

VisualWebArena benchmark for BrowserGym

Project description

VisualWebArena benchmark for BrowserGym

This package provides browsergym.visualwebarena, which is an unofficial port of the VisualWebArena benchmark for BrowserGym.

Note: the original VisualWebArena codebase has been slightly adapted to ensure compatibility.

Server installation

You have two options to setup your webarena instance:

We recommend option 2 as it allows you to easily customize the ports of each webarena domain, and offers a reset functionality that allwos browsergym to trigger a full instance reset remotely.

Setup

  1. Install the package
pip install browsergym-visualwebarena
  1. Download tokenizer resources
python -c "import nltk; nltk.download('punkt_tab')"
  1. Setup the URLs as environment variables. The ports for each domain here should correspond to those you used when setting up your webarena instance. Note also the VWA_ prefix which is specific to browsergym.
BASE_URL=<YOUR_SERVER_URL_HERE>  # example: "http://myazuremachine.eastus.cloudapp.azure.com"

# visualwebarena environment variables (change ports as needed)
export VWA_CLASSIFIEDS="$BASE_URL:8083"
export VWA_CLASSIFIEDS_RESET_TOKEN="4b61655535e7ed388f0d40a93600254c"
export VWA_SHOPPING="$BASE_URL:8082"
export VWA_REDDIT="$BASE_URL:8080"
export VWA_WIKIPEDIA="$BASE_URL:8081"
export VWA_HOMEPAGE="$BASE_URL:80"

# if your webarena instance offers the FULL_RESET feature (optional)
export VWA_FULL_RESET="$BASE_URL:7565"

# otherwise, be sure to NOT set VWA_FULL_RESET, or set it to an empty string
export VWA_FULL_RESET=""
  1. Setup an OpenAI API key
export OPENAI_API_KEY=...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

browsergym_visualwebarena-0.14.3.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

browsergym_visualwebarena-0.14.3-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file browsergym_visualwebarena-0.14.3.tar.gz.

File metadata

File hashes

Hashes for browsergym_visualwebarena-0.14.3.tar.gz
Algorithm Hash digest
SHA256 55f0f62ffe95cb0a849ba507710e340b07443c62225f3b15fa99ae2b7dd678c0
MD5 8b046513d42c71d452a0fdfa44a8ebb4
BLAKE2b-256 6c101b365cfd780cf046112bc1c21390bc1c58a459378c0ce5490140597ba385

See more details on using hashes here.

Provenance

The following attestation bundles were made for browsergym_visualwebarena-0.14.3.tar.gz:

Publisher: pypi.yml on ServiceNow/BrowserGym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file browsergym_visualwebarena-0.14.3-py3-none-any.whl.

File metadata

File hashes

Hashes for browsergym_visualwebarena-0.14.3-py3-none-any.whl
Algorithm Hash digest
SHA256 94b31707cf025d5e2a814435fcbe62e6f76a6b0d22caa30036ebf3479034ff4b
MD5 ca4047bcf02ca7ecce1c8f8edc598298
BLAKE2b-256 fc8f4e6b1c1a4298675aa3109ba7d7eb368dd39456d08e4b79d5b0a49586147d

See more details on using hashes here.

Provenance

The following attestation bundles were made for browsergym_visualwebarena-0.14.3-py3-none-any.whl:

Publisher: pypi.yml on ServiceNow/BrowserGym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page