Spaces:
Build error
Build error
Download src/huggingface/huggingface_client.py from c-gohlke/LitRL-Inference: direct link, hf CLI and curl.
- Browser
- Download file 367 Bytes
-
https://huggingface.co/spaces/c-gohlke/LitRL-Inference/resolve/main/src/huggingface/huggingface_client.py
- Command line
-
hf download hf://spaces/c-gohlke/LitRL-Inference/src/huggingface/huggingface_client.py
-
curl -L -o huggingface_client.py https://huggingface.co/spaces/c-gohlke/LitRL-Inference/resolve/main/src/huggingface/huggingface_client.py
367 Bytes
| from huggingface_hub import HfApi | |
| from src.huggingface.get_environments import get_environments | |
| from src.huggingface.get_files import get_mp4_paths | |
| class HuggingFaceClient: | |
| def __init__(self) -> None: | |
| self.hf_api = HfApi() | |
| self.environments = get_environments(self.hf_api) | |
| self.mp4_paths = get_mp4_paths(environments=self.environments) | |