Skip to content

Commit 67eec2c

Browse files
authored
Update examples/textarena_simple.py
1 parent 09ad324 commit 67eec2c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

examples/textarena_simple.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,14 @@ def main() -> None:
2424
print("💬 TextArena Hello World - GuessTheNumber-v0")
2525
print("=" * 60)
2626

27-
env = TextArenaEnv("https://huggingface.co/spaces/burtenshaw/textarena")
27+
env = TextArenaEnv.from_docker_image(
28+
"textarena-env:latest",
29+
env_vars={
30+
"TEXTARENA_ENV_ID": "GuessTheNumber-v0",
31+
"TEXTARENA_NUM_PLAYERS": "1",
32+
},
33+
ports={8000: 8000},
34+
)
2835

2936
try:
3037
print("\n📍 Resetting environment...")

0 commit comments

Comments
 (0)