MCPcopy Create free account
hub / github.com/Lightning-AI/LitServe / predict

Method predict

tests/unit/test_lit_server.py:386–389  ·  view source on GitHub ↗
(self, x_batch, context)

Source from the content-addressed store, hash-verified

384
385class IdentityBatchedStreamingAPI(ls.test_examples.SimpleBatchedAPI):
386 def predict(self, x_batch, context):
387 for c, x in zip(context, x_batch):
388 c["input"] = x
389 yield self.model(x_batch)
390
391 def encode_response(self, output_stream, context):
392 for _ in output_stream:

Callers

nothing calls this directly

Calls 1

modelMethod · 0.80

Tested by

no test coverage detected