We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5e3c14 commit 59735a1Copy full SHA for 59735a1
1 file changed
api/main.py
@@ -191,4 +191,10 @@ async def websocket_worm(ws: WebSocket):
191
elif cmd == "inference":
192
obs = data.get("obs", []) # raw 8-D observation
193
act_vec = infer_action_worm(obs)
194
- await ws.send_json({"type": "action", "action": act_vec})
+ await ws.send_json({"type": "action", "action": act_vec})
195
+
196
197
+if __name__ == "__main__":
198
+ import uvicorn
199
200
+ uvicorn.run(app, host="0.0.0.0", port=8001)
0 commit comments