MCPcopy Create free account
hub / github.com/Lightning-AI/LitServe / setup

Method setup

tests/simple_server.py:21–22  ·  view source on GitHub ↗
(self, device)

Source from the content-addressed store, hash-verified

19
20class SimpleLitAPI(LitAPI):
21 def setup(self, device):
22 self.model = lambda x: x**2
23
24 def decode_request(self, request: Request):
25 return request["input"]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected