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

Method setup

tests/unit/test_form.py:23–24  ·  view source on GitHub ↗
(self, device)

Source from the content-addressed store, hash-verified

21
22class SimpleFileLitAPI(LitAPI):
23 def setup(self, device):
24 self.model = lambda x: x**2
25
26 def decode_request(self, request: Request):
27 return len(request["input"].file.read().decode("utf-8"))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected