MCPcopy
hub / github.com/Lightning-AI/LitServe / predict

Method predict

tests/unit/test_litapi.py:56–59  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

54 return request["input"]
55
56 def predict(self, x):
57 # x is a list of integers
58 for i in range(4):
59 yield np.asarray(x) * i
60
61 def encode_response(self, output_stream):
62 for output in output_stream:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected