Spaces:
Runtime error
Runtime error
UjjwalPardeshi commited on
Commit ·
a72d669
1
Parent(s): 6415da0
fix: use GenericAction(**kwargs) instead of positional dict arg
Browse files- inference.py +1 -1
inference.py
CHANGED
|
@@ -210,7 +210,7 @@ async def run_task(env: GenericEnvClient, client: OpenAI, task_id: str) -> None:
|
|
| 210 |
raw = get_model_message(client, step, obs_summary, last_reward, history)
|
| 211 |
action_str = parse_action(raw)
|
| 212 |
|
| 213 |
-
action = GenericAction(json.loads(action_str))
|
| 214 |
result = await env.step(action)
|
| 215 |
obs = result.observation
|
| 216 |
|
|
|
|
| 210 |
raw = get_model_message(client, step, obs_summary, last_reward, history)
|
| 211 |
action_str = parse_action(raw)
|
| 212 |
|
| 213 |
+
action = GenericAction(**json.loads(action_str))
|
| 214 |
result = await env.step(action)
|
| 215 |
obs = result.observation
|
| 216 |
|