from __future__ import annotations
import bentoml

# Minimal service with a single API method. The vulnerability is triggered
# before this method executes, during request deserialization.
@bentoml.service()
class Summarization:
    @bentoml.api(batchable=True)
    def summarize(self, texts: list[str]) -> list[str]:
        # Echo back the inputs; business logic is irrelevant for the PoC
        return [str(t) for t in texts]
