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