Download examples/tutorial/async-inf/policy_server.py from paulagb/hackathon-dataset_caramelos: direct link, hf CLI and curl.
- Browser
- Download file 314 Bytes
-
https://huggingface.co/datasets/paulagb/hackathon-dataset_caramelos/resolve/main/examples/tutorial/async-inf/policy_server.py
- Command line
-
hf download hf://datasets/paulagb/hackathon-dataset_caramelos/examples/tutorial/async-inf/policy_server.py
-
curl -L -o policy_server.py https://huggingface.co/datasets/paulagb/hackathon-dataset_caramelos/resolve/main/examples/tutorial/async-inf/policy_server.py
314 Bytes
| from lerobot.async_inference.configs import PolicyServerConfig | |
| from lerobot.async_inference.policy_server import serve | |
| host = ... # something like "127.0.0.1" if you're exposing to localhost | |
| port = ... # something like 8080 | |
| config = PolicyServerConfig( | |
| host=host, | |
| port=port, | |
| ) | |
| serve(config) | |