Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lightning-AI/LitServe
/ decode_request
Method
decode_request
tests/simple_server_diff_port.py:22–23 ·
view source on GitHub ↗
(self, request)
Source
from the content-addressed store, hash-verified
20
self.model =
lambda
x: x**2
21
22
def
decode_request(self, request):
23
return
request[
"input"
]
24
25
def
predict(self, x):
26
return
self.model(x)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected