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

Method setup

tests/unit/test_auth.py:59–60  ·  view source on GitHub ↗
(self, device)

Source from the content-addressed store, hash-verified

57
58class SimpleLitAPI(LitAPI):
59 def setup(self, device):
60 self.model = lambda x: x**2
61
62 def decode_request(self, request: Request):
63 return request["input"]

Callers 3

test_run_single_loopFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected