mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-12 23:29:52 +00:00
18 lines
384 B
Python
18 lines
384 B
Python
from lerobot.async_inference.configs import PolicyServerConfig
|
|
from lerobot.async_inference.policy_server import serve
|
|
|
|
|
|
def main():
|
|
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)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|