Spaces:
Sleeping
Sleeping
Download client.py from ProthamD/api-debug-env: direct link, hf CLI and curl.
- Browser
- Download file 538 Bytes
-
https://huggingface.co/spaces/ProthamD/api-debug-env/resolve/main/client.py
- Command line
-
hf download hf://spaces/ProthamD/api-debug-env/client.py
-
curl -L -o client.py https://huggingface.co/spaces/ProthamD/api-debug-env/resolve/main/client.py
538 Bytes
| try: | |
| from openenv.core.client import EnvClient | |
| except ImportError: | |
| try: | |
| from openenv.core.env_client import EnvClient | |
| except ImportError: | |
| from openenv.core import EnvClient | |
| from models import APIAction, APIObservation, APIState | |
| class APIDebugEnv(EnvClient[APIAction, APIObservation, APIState]): | |
| def __init__(self, base_url: str = "http://localhost:7860"): | |
| super().__init__( | |
| base_url=base_url, | |
| action_type=APIAction, | |
| observation_type=APIObservation, | |
| ) | |