Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lightning-AI/LitServe
/ encode_response
Method
encode_response
tests/unit/test_simple.py:259–260 ·
view source on GitHub ↗
(self, output)
Source
from the content-addressed store, hash-verified
257
return
self.model(x)
258
259
def
encode_response(self, output) -> Response:
260
return
{
"output"
: output}
261
262
263
class
SlowBatchAPI(SlowLitAPI):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected