Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lightning-AI/LitServe
/ encode_response
Method
encode_response
tests/conftest.py:53–54 ·
view source on GitHub ↗
(self, output)
Source
from the content-addressed store, hash-verified
51
return
self.model(x)
52
53
def
encode_response(self, output) -> Response:
54
return
{
"output"
: output}
55
56
57
class
SimpleStreamAPI(LitAPI):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected