TimeWarp benchmark for BrowserGym
Project description
TimeWarp Benchmark for BrowserGym
TimeWarp benchmark with 4 environments: WIKI, WEBSHOP, NEWS, HOME.
Environment Setup
To set the environment, please follow the instructions in our Github repo.
Browsergym Setup
pip install browsergym-timewarp
python -c "import nltk; nltk.download('punkt_tab')"
Environment Variables
export TW_WIKI="http://localhost:5000"
export TW_WEBSHOP="http://localhost:5001"
export TW_NEWS="http://localhost:5002"
export TW_USERNAME="admin" # Optional
export TW_PASSWORD="admin" # Optional
export OPENAI_API_KEY="your-key" # For fuzzy evaluation
Usage
import gymnasium as gym
import browsergym.timewarp
env = gym.make("browsergym/timewarp.1")
obs, info = env.reset()
# Run your agent
env.close()
Adding Tasks
- Add to
src/browsergym/timewarp/data/test.raw.json - Update
TASK_IDSinconfig.py - Add to
metadata/timewarp.csv
Sites: ["wiki"], ["webshop"], ["news"]
Placeholders: __WIKI__, __WEBSHOP__, __NEWS__
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
browsergym_timewarp-0.1.0.tar.gz
(53.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file browsergym_timewarp-0.1.0.tar.gz.
File metadata
- Download URL: browsergym_timewarp-0.1.0.tar.gz
- Upload date:
- Size: 53.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57b312742c8240ee102a9aca7a9a6c9ffc8c16c9a9b2799edd1cb9f930fc8235
|
|
| MD5 |
4274ebb7103c0705c41949ed6efa57b3
|
|
| BLAKE2b-256 |
b397367d14cd1b79537f701e60f56f0698f67663f68a40430d7609d9f5336e1e
|
File details
Details for the file browsergym_timewarp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: browsergym_timewarp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 45.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de764934ce34f1939a97c8c36567fe0aad7f8f087247ab72ae896a9c951abed5
|
|
| MD5 |
04b9a689fa49ff15b98c6f6afdb863f2
|
|
| BLAKE2b-256 |
9d646e36088f3ab04b27cad26c89295a9db433fe0e59f1dab7f59835a7e9c5c8
|