Spaces:
Sleeping
Sleeping
Download models.py from Boobesh007/runner-game: direct link, hf CLI and curl.
- Browser
- Download file 557 Bytes
-
https://huggingface.co/spaces/Boobesh007/runner-game/resolve/main/models.py
- Command line
-
hf download hf://spaces/Boobesh007/runner-game/models.py
-
curl -L -o models.py https://huggingface.co/spaces/Boobesh007/runner-game/resolve/main/models.py
557 Bytes
| from openenv.core.env_server.types import Action, Observation | |
| from pydantic import Field | |
| class RunnerAction(Action): | |
| jump: bool = Field(..., description="True to jump, False to do nothing") | |
| class RunnerObservation(Observation): | |
| distance_to_obstacle: float = Field(default=0.0, description="Distance to next obstacle") | |
| player_alive: bool = Field(default=True, description="Whether the player is still alive") | |
| score: int = Field(default=0, description="Current score") | |
| speed: float = Field(default=1.0, description="Current game speed") | |