Spaces:
Sleeping
Sleeping
Download client.py from TheCrustaceans/Pm-ops: direct link, hf CLI and curl.
- Browser
- Download file 469 Bytes
-
https://huggingface.co/spaces/TheCrustaceans/Pm-ops/resolve/main/client.py
- Command line
-
hf download hf://spaces/TheCrustaceans/Pm-ops/client.py
-
curl -L -o client.py https://huggingface.co/spaces/TheCrustaceans/Pm-ops/resolve/main/client.py
469 Bytes
| """OpenEnv client wrapper for PM-Ops environment.""" | |
| import os | |
| from openenv.core.env_client import EnvClient | |
| from models import PMOpsAction, PMOpsObservation | |
| class PMOpsEnv(EnvClient): | |
| action_class = PMOpsAction | |
| observation_class = PMOpsObservation | |
| def __init__(self, base_url: str | None = None, token: str | None= None): | |
| url = base_url or os.getenv("API_BASE_URL", "https://adityaguntur-pm-ops.hf.space") | |
| super().__init__(base_url=url) | |