Is there a straightforward way to expose an API me...
# ask-for-help
a
Is there a straightforward way to expose an API method on the
Service
class that just takes an unnamed list as input? If I have something like the following:
Copy code
@bentoml.service
class ModelService:

    def __init__(self):
        self.model = ""

    @bentoml.api
    def predict(self, data: List[str]) -> List[float]
        return [self.model.predict(x) for x in data]
Then the API requires input that looks like this:
Copy code
{data: ["First string", "Second string"]}
Is it possible to have the input instead something like:
Copy code
["First string", "Second string"]