Instructions to use INSAIT-Institute/LADDER-RoboLab-Long with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LeRobot
How to use INSAIT-Institute/LADDER-RoboLab-Long with LeRobot:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download ladder/components/inference/api/core/requests.py from INSAIT-Institute/LADDER-RoboLab-Long: direct link, hf CLI and curl.
- Browser
- Download file 538 Bytes
-
https://huggingface.co/INSAIT-Institute/LADDER-RoboLab-Long/resolve/main/ladder/components/inference/api/core/requests.py
- Command line
-
hf download hf://INSAIT-Institute/LADDER-RoboLab-Long/ladder/components/inference/api/core/requests.py
-
curl -L -o requests.py https://huggingface.co/INSAIT-Institute/LADDER-RoboLab-Long/resolve/main/ladder/components/inference/api/core/requests.py
538 Bytes
| from enum import Enum | |
| from typing import Any, Dict | |
| class RequestType(str, Enum): | |
| RESET = "reset" | |
| GET_OBSERVATIONS = "get_observations" | |
| EXEC_ACTION = "exec_action" | |
| CONNECT = "connect" | |
| EXIT = "exit" | |
| def parse_request_type(request: Dict[str, Any]) -> RequestType: | |
| try: | |
| request_type = RequestType(request["type"]) | |
| except KeyError: | |
| raise ValueError("Invalid request: request type not specified.") | |
| except ValueError: | |
| raise ValueError("Invalid request type.") | |
| return request_type | |