Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Pranav Patel commited on
Commit ·
bfae996
1
Parent(s): a013eec
Increase context window and observation detail
Browse files
harfeast_openenv/environment.py
CHANGED
|
@@ -45,7 +45,7 @@ class HarFeastOpenEnv:
|
|
| 45 |
self._rng: random.Random | None = None
|
| 46 |
self._history: list[dict] = []
|
| 47 |
|
| 48 |
-
self.CONTEXT_WINDOW_STEPS =
|
| 49 |
self.MAX_STEPS = 20
|
| 50 |
|
| 51 |
@property
|
|
@@ -316,8 +316,8 @@ class HarFeastOpenEnv:
|
|
| 316 |
action = entry["action"]
|
| 317 |
action_name = action.get("action", "?")
|
| 318 |
obs = entry["observation"]
|
| 319 |
-
if len(obs) >
|
| 320 |
-
obs_short = obs[:
|
| 321 |
else:
|
| 322 |
obs_short = obs
|
| 323 |
obs_short = " ".join(obs_short.split())
|
|
|
|
| 45 |
self._rng: random.Random | None = None
|
| 46 |
self._history: list[dict] = []
|
| 47 |
|
| 48 |
+
self.CONTEXT_WINDOW_STEPS = 8
|
| 49 |
self.MAX_STEPS = 20
|
| 50 |
|
| 51 |
@property
|
|
|
|
| 316 |
action = entry["action"]
|
| 317 |
action_name = action.get("action", "?")
|
| 318 |
obs = entry["observation"]
|
| 319 |
+
if len(obs) > 300:
|
| 320 |
+
obs_short = obs[:300] + "..."
|
| 321 |
else:
|
| 322 |
obs_short = obs
|
| 323 |
obs_short = " ".join(obs_short.split())
|