burtenshaw HF Staff commited on
Commit
6d0e3f7
·
verified ·
1 Parent(s): 9ce7591

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. src/envs/echo_env/client.py +6 -0
src/envs/echo_env/client.py CHANGED
@@ -99,3 +99,9 @@ class EchoEnv(HTTPEnvClient[EchoAction, EchoObservation]):
99
  episode_id=payload.get("episode_id"),
100
  step_count=payload.get("step_count", 0),
101
  )
 
 
 
 
 
 
 
99
  episode_id=payload.get("episode_id"),
100
  step_count=payload.get("step_count", 0),
101
  )
102
+
103
+ @classmethod
104
+ def from_hub(cls, space_id: str, **kwargs: Any) -> "EchoEnv":
105
+ """Launch the Space from Hugging Face Hub and return an `EchoEnv` client."""
106
+
107
+ return super().from_hub(space_id, **kwargs)