Spaces:
Sleeping
Sleeping
Commit History
-
fix: lazy openenv.core imports so FactoryEnv works on all Python envs
Roshan818- factory_env/env.py: wrap openenv.core Environment import in try/except - factory_env/models.py: lazy imports for Action/Observation/State base classes, add explicit done/reward fields to FactoryObservation for fallback case - grader.py: clean FactoryEnv-only grader, no pure-Python fallbacka0f94c2
-
fix: add graders to openenv.yaml and clamp scores to (0, 1) exclusive
Phase 2 validator requires each task to declare a grader in openenv.yaml and each grader to produce scores strictly between 0.0 and 1.0. - openenv.yaml: add grader: factory_env.grader:score_episode to all 3 tasks - grader.py: clamp compute_score output to [0.001, 0.999] — easy task was returning exactly 1.0 (perfect baseline), which the validator rejected - README: update easy baseline score from 1.000 to ~0.999 - Remove stale root server.py (entry point is server/app.py per pyproject.toml)f302e97
-
Fix task selection: reset() accepts task param, all 3 tasks verified
c01d448 -
Rebuild inference + client to match OpenEnv WebSocket spec
- factory_env/client.py: new FactoryEnvClient(EnvClient) with proper _step_payload, _parse_result, _parse_state — connects via WebSocket /ws - inference.py: fully async, uses FactoryEnvClient (from_docker_image or ENV_URL), strict [START]/[STEP]/[END] log format, heuristic fallback, score from final WebSocket state - server.py: simplified, uses create_app with ENABLE_WEB_INTERFACE support - Dockerfile: ENABLE_WEB_INTERFACE=1 for built-in Gradio UI at /web - requirements.txt: add websockets>=12.0 and httpx>=0.27fe75421 -
Fix HF Space blank screen and state endpoint bug
- Add root GET / endpoint to server.py so HF Space returns 200 instead of 404 - Remove invalid step_count field from FactoryState construction in env.py - Expand openenv.yaml with version, task descriptions, action/observation space metadataa2db6ba -
OpenEnv Submission
6195f6a
-
Initial commit
d755709