Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
58
class
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_loop
Function · 0.95
test_run_single_loop_timeout
Function · 0.95
test_simple_api_without_server
Function · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected