Spaces:
Sleeping
Sleeping
Download env/state.py from kumar6591/data-quality-env: direct link, hf CLI and curl.
- Browser
- Download file 278 Bytes
-
https://huggingface.co/spaces/kumar6591/data-quality-env/resolve/main/env/state.py
- Command line
-
hf download hf://spaces/kumar6591/data-quality-env/env/state.py
-
curl -L -o state.py https://huggingface.co/spaces/kumar6591/data-quality-env/resolve/main/env/state.py
278 Bytes
| from __future__ import annotations | |
| from typing import Any | |
| from env.models import EpisodeState | |
| def export_state(st: EpisodeState | None) -> dict[str, Any]: | |
| if st is None: | |
| return {"task_id": None, "seed": None, "step": 0, "done": False} | |
| return st.model_dump() | |