We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0077c5f commit c3f6a54Copy full SHA for c3f6a54
1 file changed
src/browsergym/workarena/instance.py
@@ -1,6 +1,7 @@
1
import base64
2
import json
3
import os
4
+import random
5
import requests
6
from itertools import cycle
7
@@ -120,7 +121,7 @@ def __init__(
120
121
raise ValueError(
122
f"No instances found in the dataset {INSTANCE_REPO_ID}. Please provide instance details via parameters or environment variables."
123
)
- instance = instances[0] # For now, just pick the first one
124
+ instance = random.choice(instances)
125
snow_url = instance["url"]
126
snow_credentials = ("admin", instance["password"])
127
0 commit comments